In C++11, should the operation of static_assert within a template depend on whether that template has been instantiated or not? For example, with the following code
I used a helper function to make the false dependent on the template parameter:
template bool dependentFalse() { return false; } template Foo foo() { static_assert(dependentFalse(), "this template shouldn't be instantiated"); }