alpaka icon indicating copy to clipboard operation
alpaka copied to clipboard

Use std::byte where appropriate

Open bernhardmgruber opened this issue 2 years ago • 0 comments

We have a lot of places in alpaka where we deal with a region of bytes. E.g. are buffers, views, memset, etc. Since C++17 we can use the dedicated type std::byte to communicate the intent that we are dealing with raw bytes and not integers intended for computations. We should thus refactor the code and change types to std::byte where we really mean just a region of storage.

bernhardmgruber avatar Dec 17 '21 10:12 bernhardmgruber