r/cpp • u/pavel_v • Mar 27 '26
C++26: A User-Friendly assert() macro
https://www.sandordargo.com/blog/2026/03/25/cpp26-user-friendly-assert
50
Upvotes
r/cpp • u/pavel_v • Mar 27 '26
View all comments
Show parent comment
1
u/holyblackcat Mar 27 '26
Older Clang versions used to check constraints too late, later than the regular SFINAE, which caused issues like this one: https://gcc.godbolt.org/z/44cE57feb
I'm not sure what the spec has to say about it, but newer versions don't do this anymore.