Boost logo

Boost Users :

Subject: Re: [Boost-users] BOOST_PROTO_EXTENDS_USING_ASSIGN
From: Eric Niebler (eric_at_[hidden])
Date: 2010-11-22 19:11:42


On 11/22/2010 5:35 PM, Hossein Haeri wrote:
> Dear all,
>
> When I compile the example right after
>
> http://beta.boost.org/doc/libs/1_45_0/doc/html/proto/users_guide.html#boost_proto.users_guide.front_end.adding_members_by_extending_expressions.extends
>
> I get the following error in GCC 4.5.0 (MinGW32, WinXPSP2):
>
> error: ISO C++ forbids declaration of
> 'BOOST_PROTO_EXTENDS_USING_ASSIGN' with no type error: expected ';'
> before 'typedef'
>
> I first thought that that's because I haven't included the right set
> of headers. Replaced them all with #include <boost/proto/proto.hpp>
> and the problem remains intact. Any suggestions?

What version of Boost are you using? That macro was added fairly
recently. The docs are for the latest released version.

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net