I have asked this question before on a different forum without success. I would like to know how to do templated type conversions for a class. The syntax is getting me though. Here is what I want:
class Thing
{
public:
template <typename T>
T operator T();
}
This would allow me to cast my class to anything! Is this possible?