g++ "extra semicolon" in ptr_vector.hpp

I'm building a project that uses boost, and it insists on building with g++ -pedantic on Linux. This is causing an issue in ptr_container/ptr_vector.hpp (in boost 1.35 it's on line 47) public: BOOST_PTR_CONTAINER_DEFINE_SEQEUENCE_MEMBERS( ptr_vector, base_class, this_type ); After BOOST_PTR_CONTAINER_DEFINE_SEQEUENCE_MEMBERS gets done being expanded in detail/reversible_ptr_container.hpp, the semicolon is extraneous. g++ 3.4.6 (at least) complains about this: /usr/local/include/boost/ptr_container/ptr_vector.hpp:45: error: extra semicolon Could that be removed?

Steve Huston skrev:
I'm building a project that uses boost, and it insists on building with g++ -pedantic on Linux. This is causing an issue in ptr_container/ptr_vector.hpp (in boost 1.35 it's on line 47)
public:
BOOST_PTR_CONTAINER_DEFINE_SEQEUENCE_MEMBERS( ptr_vector, base_class, this_type );
It's been removed from trunk for some time. I just need to merge the changes, if it is allowed by the release team. -Thorsten

Ah, ok - thanks. -Steve
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Thorsten Ottosen Sent: Monday, June 23, 2008 5:35 AM To: boost@lists.boost.org Subject: Re: [boost] g++ "extra semicolon" in ptr_vector.hpp
Steve Huston skrev:
I'm building a project that uses boost, and it insists on building with g++ -pedantic on Linux. This is causing an issue in ptr_container/ptr_vector.hpp (in boost 1.35 it's on line 47)
public:
BOOST_PTR_CONTAINER_DEFINE_SEQEUENCE_MEMBERS( ptr_vector, base_class, this_type );
It's been removed from trunk for some time. I just need to merge the
changes, if it is allowed by the release team.
-Thorsten _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Steve Huston
-
Thorsten Ottosen