I have a general C++ / Windows question for coding standards regarding compile-time assertions.
static_assert
is C++11 and language/compiler supported;
C_ASSERT
is a define from winnt.h
So, if I have C++ Windows code - which one should I use? Why? What are the advantages of one over the other?
I tested both - there is a difference in the error message.
Based on the documentation, you should use static_assert over C_ASSERT.