C
Christopher
I am trying to re-write some code from a book I am working on so that I
understand it's functionality.
I ran across this:
template <class T>
class Flag
{
public:
// snip
T value;
operator T() {return value;};
// snip
};
what does the operator T do? and is it not returning a value even a void?
,
Christopher
understand it's functionality.
I ran across this:
template <class T>
class Flag
{
public:
// snip
T value;
operator T() {return value;};
// snip
};
what does the operator T do? and is it not returning a value even a void?
,
Christopher