Call me psychic but I think your problem is grammar.
If you want help, you're going to have to tell us where you are stuck, and..if possible..tell us correctly.
__________________
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.
|