3 ms·
Which of the two template arguments are you talking about? The enum-typed template argument will lead to a optimized specialization of the template. C++ does, h
by gmueckl 7y ago
Which of the two template arguments are you talking about? The enum-typed template argument will lead to a optimized specialization of the template. C++ does, however, have an unfortunate problem with restricting type parameters to types with certain properties/guarantees in ways that won't make the compiler explode in obtuse error messages.
- llukas 7y agostatic_assert, enable_if or just plain not providing default implementation and only specializations, as everything in C++ error messages is something you can customize to high extent...