This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Sure, if you like (the never ending story of std::pow between C++99 and C++11, I'm still meeting people missing the (*, int) overloads ;)I'll add a testcase for this, if you agree.But I'm afraid this is still not completely correct, because if the user code has a using std::pow in the global namespace and then and include <tr1/cmath> the latter drags again in namespace std::tr1 the overloads pow (*, int) which we don't want there... grrrrr
Thanks! (if you feel lazy about the comment, just add a couple of URLs to the front-end issue and to this discussion, it's more than enough to understand what's going on)You know what? All in all, I think we can go with your original idea of just removing the overload for (double, double): what I didn't realize the first time I saw the idea is that we have anyway the templatized pow which forwards to std::pow. Thus, I suppose things should work pretty well. But please add a big comment before the commented out overload. And let's see if over the next months somebody complaints, otherwise, I think it will be enough for TR1, at this point.
Thanks for your patience!!!It seems reasonable, I'll update the patch soon with the comment that you suggest.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |