I am trying to bring in c++ code from another project into a new one, but it is not recognizing "byte"s, The dialect is on c++17 so what should I do? I don't really want to convert everything to unsigned char
Solved! Go to Solution.
Any suggestion on what to do to make the compiler see byte?
Hello @pb632146,
In C++17, std::byte was introduced as part of the standard library to represent raw byte data. If your code isn't recognizing byte, ensure you are including the correct header:
#include <cstddef> // for std::byte
By including this header, your project should properly recognize std::byte. This eliminates the need to convert every instance to unsigned char.
Best Regards,
James Henry