Enabling C++ constructor subject to say std::is_floating_point<T>
I’m trying to enable a default constructor only if the class’s template parameter is floating point. Note T is not a parameter type nor return type but the class template type. template <typename T> struct Thing { const T x; Thing( T t) : x(t) {} //only turn on this constructor if T is floating… Read More Enabling C++ constructor subject to say std::is_floating_point<T>