Why Won't Visual Studio let me use a Templatized, constexpr Function in enable_if?
问题 So I've boiled this down to the minimal, complete, verifiable example and it seems that Visual Studio 2015 just won't allow me to use a templatized, constexpr function in an enable_if . For example: template <typename T> constexpr bool condition() { return sizeof(T) > 1; } Gives me the error: error C2995: enable_if<_Test,T>::type test(void) : function template has already been defined When I try to use it in substitution failure is not an error compilation like this: template <typename T>