Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are round(), rint() (and so on) C++ functions in Visual Studio 2012?

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?

like image 432
aardvarkk Avatar asked Jan 11 '14 17:01

aardvarkk


1 Answers

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".

like image 152
Lightness Races in Orbit Avatar answered Sep 22 '22 05:09

Lightness Races in Orbit