Quote Originally Posted by loves_oi View Post
Code:
template<class T>
operator T() const
{
    return data;
}
This doesn't make sense. The cast operator can only be defined as a class member function.
What are you trying to achieve at a higher level?