View Single Post
  #14  
Old 04-16-2006, 04:12 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Enough. I would like to lock this thread but since the parent post had something constructive in it I would rather not see it fall into the barrels of the archives, in case someone has something useful to say or ask.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.