[Boost-bugs] [Boost C++ Libraries] #8727: extra "; " warning with -pedantic options under g++ 4.7.2 compiler

Subject: [Boost-bugs] [Boost C++ Libraries] #8727: extra "; " warning with -pedantic options under g++ 4.7.2 compiler
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-25 10:00:43


#8727: extra ";" warning with -pedantic options under g++ 4.7.2 compiler
-------------------------------------------------+-------------------------
 Reporter: Anthony JOURDAN <anthony.jourdan@…> | Owner: fmhess
     Type: Bugs | Status: new
Milestone: Boost 1.54.0 | Component: signals2
  Version: Boost 1.54.0 | Severity:
 Keywords: -pedantic warning signals2 | Optimization
-------------------------------------------------+-------------------------
 My current boost version is boost_1_54_0_beta1.

 In the signals2 component, there is two 'extra ";"' warnings with the
 -pedantic option under g++ 4.7.2 compiler.

 In the boost\signals2\signal.hpp line 58:


 {{{
 // free swap function, findable by ADL
 template<typename Signature,
   typename Combiner,
   typename Group,
   typename GroupCompare,
   typename SlotFunction,
   typename ExtendedSlotFunction,
   typename Mutex>
   void swap(
    signal<Signature, Combiner, Group, GroupCompare, SlotFunction,
 ExtendedSlotFunction, Mutex> &sig1,
    signal<Signature, Combiner, Group, GroupCompare, SlotFunction,
 ExtendedSlotFunction, Mutex> &sig2)
 {
   sig1.swap(sig2);
 };
 }}}

 In the boost\signals2\detail\signal_template.hpp line 740.


 {{{
 #ifdef BOOST_NO_CXX11_VARIADIC_TEMPLATES
     // free swap function for signalN classes, findable by ADL
     template<BOOST_SIGNALS2_SIGNAL_TEMPLATE_DECL(BOOST_SIGNALS2_NUM_ARGS)>
       void swap(
         BOOST_SIGNALS2_SIGNAL_CLASS_NAME(BOOST_SIGNALS2_NUM_ARGS)
 <BOOST_SIGNALS2_SIGNAL_TEMPLATE_INSTANTIATION> &sig1,
         BOOST_SIGNALS2_SIGNAL_CLASS_NAME(BOOST_SIGNALS2_NUM_ARGS)
 <BOOST_SIGNALS2_SIGNAL_TEMPLATE_INSTANTIATION> &sig2 )
     {
       sig1.swap(sig2);
     };
 #endif
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8727>
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:13 UTC