Quote:
Originally Posted by m0oni9
Quote:
Originally Posted by Cisyouc
Hmmm. I'm not getting those warnings, ajb. Regardless as long as #qFlag works its not worth worrying about =)
|
Not to be a pedant, but it is good practice to fix warnings. Just because it works now does not guarantee it will work later on, or in another situation (ie: for someone else).
|
My lazyness at best.
-edit-
Syntax fixed.
__________________
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.
|