2 ms·
I expect other people to write tests (including compile time tests).
by gpderetta 4y ago
I expect other people to write tests (including compile time tests).
- tialaramex 4y agoIf you were worried about behavioural problems, including UB, tests would help. But alas the problem here is IFNDR [Ill-formed No Diagnostic Required] so the compiler can't help you. All semantic constraints are your problem as the programmer, C++ decided that it's not the compiler's concern whether the program meets semantic constraints. Testing doesn't necessarily help at all, which is probably surprising.