Opened 11 years ago

Last modified 11 years ago

#6140 new Bugs

error: "MSVC_WORKAROUND_GUARD" is not defined

Reported by: Ivo Raisr <ivosh@…> Owned by: Daniel Wallin
Milestone: Boost 1.49.0 Component: parameter
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc: bb51@…

Description

boost/parameter/aux_/unwrap_cv_reference.hpp:47:1: error: "MSVC_WORKAROUND_GUARD" is not defined
boost/parameter/aux_/unwrap_cv_reference.hpp:47:1: error: "MSVC" is not defined

There is a problem in boost/parameter/aux_/unwrap_cv_reference.hpp at line 47. It contains the following code:

#if BOOST_WORKAROUND(MSVC, == 1200)

but preprocessing fails with the errors above. I checked all boost header files and even documentation for boost/detail/workaround.hpp says, that correct form must be:

#if BOOST_WORKAROUND(BOOST_MSVC, == 1200)

After this change, preprocessing is ok. There are no other occurrences of this bug in boost 1.47.0. This bug is present also in boost 1.48.0.

Should you need more information, just ping me.

Ivo Raisr

Change History (1)

comment:1 by Ben Brian <bb51@…>, 11 years ago

Cc: bb51@… added

I also get this error on OS X Lion with GCC 4.2.1 and Boost 1.48.

Note: See TracTickets for help on using tickets.