Comment Comment by wfwefwef32 c++ static_if but for class members:template<class Type> class A {if constexpr (std::is_same<Type, int>::value) { int a; }} parent wfwefwef32 8 years ago
template<class Type> class A {
if constexpr (std::is_same<Type, int>::value) { int a; }
}