Tony Van Eerd
Tony Van Eerd
I really like this suggestion (and the mutex locking/unlocking one as well) For example code, I try to avoid `// do some work` and instead use `do_some_work()`, because example code...
yeah, it might not be the best example. Some might argue the new style is more explicit or something, but could be better.
Yep, it is a good idea. There real question is whether you find std::byte works as expected or not, and whether it suits your uses.
You are probably right, but in my world unsigneds are only used for bit twiddling, not numbers.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2131r0.html https://en.wikipedia.org/wiki/C%2B%2B20 https://en.cppreference.com/w/cpp/compiler_support