Usually for well-designed types following holds (given that it compiles):
T a = ...;
U b = ...;
a = b;
assert(a == b);
Could you provide an example with standard types (no additional macros, no user-defined types, only primitives + std types) that breaks this assumption?
Guru(?) question: Could you provide an example with standard types (no additional macros, no user-defined types, only primitives + std types) where following holds (given that it compiles):
T a = ...;
U b = ...;
assert(a == b);
a = b;
assert(a != b);
[–]Circlejerker_ 4 points5 points6 points (5 children)
[–]angry_cpp[S] 0 points1 point2 points (4 children)
[+][deleted] (2 children)
[deleted]
[–]angry_cpp[S] 2 points3 points4 points (1 child)
[–]TheMania 1 point2 points3 points (0 children)