template class, operator T
From: Christopher (anon_at_nospam.net)
Date: 12/31/03
- Next message: Jeff Schwab: "Re: Best practice for error number assignments?"
- Previous message: Billy O'Connor: "Re: polymorphism - virtual function"
- Next in thread: Jeff Schwab: "Re: template class, operator T"
- Reply: Jeff Schwab: "Re: template class, operator T"
- Reply: Ralf: "Re: template class, operator T"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Dec 2003 04:16:25 GMT
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
- Next message: Jeff Schwab: "Re: Best practice for error number assignments?"
- Previous message: Billy O'Connor: "Re: polymorphism - virtual function"
- Next in thread: Jeff Schwab: "Re: template class, operator T"
- Reply: Jeff Schwab: "Re: template class, operator T"
- Reply: Ralf: "Re: template class, operator T"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|