yohan: irc://rogean.eqemulator.net:6667/scorpious2k
Better talking on irc than posting back and forth in the matter of seconds.
__________________
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.
|