Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using C++ Technical Report 1 (TR1) in VC++ 2010 [closed]

Tags:

c++

tr1

How do I use a C++ TR1 library in visual c++ 2010?

like image 461
user439547 Avatar asked Dec 21 '22 23:12

user439547


1 Answers

VS2010 comes with a few C++0x features built-in. Some features of TR1, such as the mathematical functions, are not included in the Visual C++ implementation of TR1.

boost has an implementation of TR1, you can get it by downloading boost.

To disable the C++0x/TR1 headers from VS2010 and use the boost implementation, define _HAS_CPP0X=0 in the project settings for your VS2010 project.

like image 115
Brian R. Bondy Avatar answered Jan 06 '23 08:01

Brian R. Bondy