Oh. From the thread I understood that it was the live version. I'm not on a permenant setup right now so I can't check from myself. I'm going to take your word on that that that is correct and works with 6.4.
__________________
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.
|