4 ms·
On the other hand, static_assert will have a more helpful compile error for users of the code. They will clearly see assertion condition that failed, rather tha
by obiterdictum 14y ago
On the other hand, static_assert will have a more helpful compile error for users of the code. They will clearly see assertion condition that failed, rather than missing candidate error due to substitution failure (or worse, a different overload silently considered instead).