Original Post
ive got a template class which takes structs as template parameters.. if the structs that i send in has a certain variable id like to enable a function... is there any way to do this with something similar to type-to-type mapping or boost::enable_if this is how it looks template struct elemenet { // if T::id then enable this function const T& GetByID() {} };