Reputation: 15986
These pages:
http://www.cplusplus.com/reference/cmath/round/
http://www.cplusplus.com/reference/cmath/rint/
imply that these functions are part of C++11, and Visual Studio 2012 seems to support basically everything in C++11... so where the heck are the rounding functions (not to mention the other additional math functions)?!
I know all about rolling my own rounding function, but it just seems ridiculous at this point. Am I just missing something here and there's some special combination of std::
and tr1::
or another header file to get access to these?
Upvotes: 6
Views: 3758
Reputation: 385295
As you say, VS2012 supports "basically everything" from C++11, but that is not the same as "everything".
These functions were added in VS2013 which, for the record, still doesn't support "everything".
Upvotes: 8