r/cpp • • Mar 27 '26

C++26: A User-Friendly assert() macro

https://www.sandordargo.com/blog/2026/03/25/cpp26-user-friendly-assert
53 Upvotes

27 comments sorted by

View all comments

Show parent comment

3

u/38thTimesACharm Mar 28 '26

SFINAE is the only C++ "feature" where if it's the only way to accomplish something, I strongly consider just not doing that thing.

2

u/EC36339 Mar 28 '26

No. It used to have its justification, but now type constraints can be achieved in better ways.