Quote:
Originally Posted by maveren
i think it sucks, all of it.
|
You bumped this post to say just that?
Thanks for explaining why you dislike it.
__________________
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.
|