Use of `cassert` infects all users
jsren opened this issue · comments
James Renwick commented
The use of the cassert
header, and thus inclusion of the lowercase assert
macro, prevents users importing this library from having "assert" as any identifier or namespace, which doesn't tend to play well with larger projects not making use of this header, and certainly doesn't play well with C++11 unit test libraries!
A simple fix, as cassert
is essentially guaranteed to contain nothing but assert
, would be to #undef
assert at the end of the header. However the special stitch script complains because there is no visible counterpart #define assert
, making this a lot less trivial.