Quote:
Originally Posted by sotonin
For everybody's posting enjoyment. JohnMcguirk is Bbum / Mysticalninjajesus.
So take what he says with a grain of salt from the start. Same posting ips as all his other alias'
|
*marks another tally*
__________________
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.
|