Well, you two have proven that you cannot handle even speaking in what was supposed to be a constructive thread.
Posts are to be deleted and thread to be locked, and you both have been given another warning.
__________________
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.
|