See my qFlag code on this:
http://www.eqemulator.net/forums/viewtopic.php?t=18143
Right now it only works for 0.6.0-DR1 because I haven't wanted to port it into DR2 yet.
__________________
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.
|