Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6007: syntax error in VS2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-17 03:40:24
#6007: syntax error in VS2010
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: jsiek
Type: Bugs | Status: new
Milestone: To Be Determined | Component: dynamic_bitset
Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by steven_watanabe):
Replying to [comment:3 anonymous]:
> I don't have minimal test, because all the errors are in boost_1_47
> I'm trying to change code enviroments from VS2008 to VS2010.
> It's work in Visual Stusio 2008 base.But It's not in VS2010
> Should I change some options in VS 2010?
> Don't you have any similar problems from other users??
>
I haven't heard this one before. Basic code using dynamic_bitset
compiles for me with VS2010.
> I include Boost BoostPython.h, dynamic_bitset.hpp, tuple.hpp,
shared_ptr.hpp, shared_array.hpp
>
What is !BoostPython.h? I don't have such
a header.
> All the syntax errors are in dynamic_bitset.hpp(57), ct_gcd_lcm.hpp(54),
pool.hpp(143)
>
> Help me~plz
This is behaving as though static_assert is defined as a macro.
Try adding
{{{
#!c++
#ifdef static_assert
#error static_assert is defined
#endif
}}}
in the source file after all #includes.
If this fires, then that's the problem.
static_assert is a keyword, so whatever is
#defining it is wrong.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6007#comment:4> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC