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.
|