Here\'s what I\'m trying to do:
template struct Model { vector vertices ; #if T has a .normal member void transform(
template< typename HTYPE, typename = std::enable_if_t::value> > static void close_release (HTYPE* ptr) { ptr->var1; }
Using enable_if and decltype to let compiler to check variable, hope to help.