For Windows? VC98. Yes, VC++ 6. The old, picky, outdated compiler. Why? The IDE is lightyears better.
Unfortunately, it's too outdated to use now. So, VC++ 7.1, I guess.
__________________
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.
|