I would like to have a custom method - I will call MyMethod - in a templated class - I will call Foo - ONLY when Foo has been instanciated with certain template parameters types (eg. when A is int and B is string), otherwise, I don't want MyMethod to exist at all on any other possible Foo instance.
Is that possible ?
Example:
template<class A, class B>
class Foo
{
string MyMethod(whatever...);
}
boost:enable_if can help there ?
Thanks!!