Repository navigation
Replace unsigned char/char by std::byte wherever possible - #64
Conversation
|
|
Co-authored-by: Hariprasad Kannan <hkannan@gmail.com>
Sure, I can include those changes in this PR, in the capture and extraction code. |
|
Done, I've migrated the remaining binary buffers and related interfaces. |
|
At many places, wherever a buffer is not modified, the pointers has now been made into a pointer to const. How do you keep track of all the places where this is applicable? |
|
The pointers are only used as sources for memcpy, cudaMemcpy or hipMemcpy, including in the allocation helpers, and I'm also using Clang Tidy. https://clang.llvm.org/extra/clang-tidy/checks/misc/const-correctness.html |
science-enthusiast
left a comment
There was a problem hiding this comment.
Looks good to me.
Further updates can be made in the future, if their need is discovered. But the manner in which the changes have been done in this PR, appears systematic to me.
|
Thank you Hari, merged. |
Fixes #61 : Replace the currently using
char/char*withstd::byte/std::byte*.