Today I learned that it's illegal in C++ to have a class inherit from a union (yes I learned by way of trying to do that) because the standards committee are COWARDS
-
-
The short answer is "I'm forcing the &T / &mut T distinction on C++" and the long answer is "by using a const pointer for immutable data but a union of const and non-const pointer for mutable" because I don't want to have two classes, BitSlice and BitSliceMut
-
Why not have two classes and add a conversion ctor?
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.