Home Dashboard Directory Help

STL: hypot not hoisted into the std namespace by cmath by TheRealBekenn


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 718865
Opened: 1/16/2012 6:19:04 PM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
User(s) can reproduce this bug


The hypot family of functions from math.h does not appear in the std namespace when #including the header <cmath>, as specified in section of the C++ standard. There may be other similar oversights; a quick glance shows that cbrt is also not present.
Sign in to post a comment.
Posted by Microsoft on 3/23/2012 at 7:57 PM

Thanks for reporting this bug. We've fixed it, and the fix will be available in VC11.

I checked, and hypot()/hypotf() were the only C99 math functions implemented in VC that weren't being dragged into namespace std by <cmath>. Now they are.

Please note that while the C++11 Standard Library includes the C99 Standard Library by reference, and we've already implemented <stdint.h>, we didn't have time to implement even more of the C99 Standard Library in VC11. However, given that we already had hypot()/hypotf(), it was an extremely simple matter to add them to <cmath>.

If you have any further questions, feel free to E-mail me at stl@microsoft.com .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by MS-Moderator10 [Feedback Moderator] on 1/17/2012 at 6:17 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 1/16/2012 at 6:41 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.