Opened 13 years ago

Closed 12 years ago

#3070 closed Bugs (fixed)

[tr1] regression tests failures in MSVC10

Reported by: Richard Webb <richard.webb@…> Owned by: John Maddock
Milestone: Boost 1.40.0 Component: TR1
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

A large number of the TR1 regression tests are failing in VC10 with error messages about syntax errors in <utility>. (see the RWVC10 runner on trunk for details).

In VC10 with the C++0x bits enabled (the default), the <utility> header includes <type_traits>. Looking at some preprocessed compiler output, it seems that if the Boost TR1 directory is in the include path then the 'real' <type_traits> is never included, leading to errors when <utility> tries to use things defined in it.

I'm not sure exactly why this happens, but defining BOOST_HAS_CPP_0X in config_all.hpp avoids the problem and results in a lot more tests passing

Change History (2)

comment:1 by anonymous, 12 years ago

This problem still exists in Boost 1.43.0 with VS 2010 Release.

What's the rational about BOOST_HAS_CPP_0X ?

Is this variable to be defined by the user?

Maybe it should be always defined for MS VS >= 2010 in config_all.hpp?

comment:2 by John Maddock, 12 years ago

Resolution: fixed
Status: newclosed

(In [62115]) Fix VC++ 10 include problems. Fixes #3070.

Note: See TracTickets for help on using tickets.