Quote:
Originally Posted by dragonflyy
Okay since you wanna be an ass. I wasn't saying that they should do it that way. I was curious to see what people think. I want an opinion. I don't tell the devs to make their program I am just interested to hear what people have to say. Next time, read the post don't assume that I am trying to tell people to do something.
|
There are reasons on that thread why we can't. Didn't mean to be rude.
__________________
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.
|