Thread: Camp Corpse
View Single Post
  #2  
Old 01-17-2006, 04:50 PM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

While I understand your concept I do not understand what you are asking.

Are you asking if this kind of thing can be implemented into vanilla CVS or are you asking if this can, in general, be implemented?
__________________
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