Converting a class to a template
===

I want to convert a class to a template and this class will have to access some data from typename T.  In this case typename T could be an object or pointer to an object.  How do I tell within the template if I'm dealing with the pointer or the object?  

I can't use Boost.