View Single Post
  #2  
Old 02-20-2006, 09:42 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Not necessary. Someone reposts the link every six months anyway :P

The fact they saw it but don't listen to its advice when posting the link is evidence enough that its use fails :P

No offense intended.
__________________
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.
Reply With Quote