BOOST_PROTO_EXTENDS_USING_ASSIGN

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_...
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

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_...
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
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

Hi Eric,
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
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.
1.42. Is that the reason then? TIA, --Hossein

On 11/23/2010 6:34 AM, Hossein Haeri wrote:
Hi Eric,
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' <snip>
What version of Boost are you using? That macro was added fairly recently. The docs are for the latest released version.
1.42. Is that the reason then?
Yes. Please refer to the docs for 1.42. -- Eric Niebler BoostPro Computing http://www.boostpro.com

On 11/23/2010 9:55 AM, Hossein Haeri wrote:
Hi Eric,
1.42. Is that the reason then?
Yes. Please refer to the docs for 1.42.
Fine. So, would you like adding a comment to the user's guide about from which version on these were added?
It's already there in Proto's release notes appendix. http://www.boost.org/doc/libs/1_45_0/doc/html/proto/appendices.html#boost_pr... -- Eric Niebler BoostPro Computing http://www.boostpro.com
participants (2)
-
Eric Niebler
-
Hossein Haeri