Home > Back-end >  VS 2015 does not include the tr1 libraries?
VS 2015 does not include the tr1 libraries?

Time:10-08

Everybody is good! Using VS 2015 to compile a c + + open source library, one of the code is:

 
# if __cplusplus & gt;
=201103 l# include & lt; Unordered_map & gt;
Using STD: : unordered_map;
# the else
# include & lt; Tr1/unordered_map & gt;
Using STD: : tr1: : unordered_map;
# endif


Result in a compiler error:
Unable to open source file "tr1/unordered_map
"
VS 2015 does not include the tr1 libraries? I am using vs 2015 enterprise edition, can be used in vs2015 tr1 libraries?

CodePudding user response:

Checked the,
For the 1998 or 2003 c + + standard c + + standard __cplusplus value is 199711 l,
For realizing the value of the 2011 c + + standard __cplusplus is 201103 l,
In the future, for the macro, c + + standard will use a larger value,

VS2015 normally should support c + + 11!
  • Related