EQ2 Development
First post~
On that note,
omgrly?
__________________
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.
Last edited by Cisyouc; 06-05-2005 at 02:32 AM..
|