Gah. I'm late.
0100 1000 0110 0001 0111 0000 0111 0000 0111 1001 0010 0000 0100 0010 0110 1001 0110 1110 0110 0001 0111 0010 0111 1001 0010 0000 0100 0100 0110 0001 0111 1001 0010 0001
57 68 65 6E 20 69 73 20 68 65 78 20 64 61 79 3F
__________________
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.
|