C++ member function templates and specialisation

by ixmx


 

class SomeObject {};
 
class Demonstration
{
    template <class T> void foo(const T& value) { }
};
 
template <> void foo(SomeObject* const & value) { }

 

Advertisements