Ticket #12140: base_from_member.diff

File base_from_member.diff, 1.0 KB (added by Thimo Neubauer <thimo.neubauer@…>, 7 years ago)

Fix for Boost 1.60

  • Boost/BUILD/boost/utility/base_from_member.hpp

    old new  
    4949
    5050#define BOOST_PRIVATE_CTR_DEF( z, n, data )                            \
    5151    template < BOOST_PP_ENUM_PARAMS(n, typename T) >                   \
    52     explicit base_from_member( BOOST_PP_ENUM_BINARY_PARAMS(n, T, x) )  \
     52    base_from_member( BOOST_PP_ENUM_BINARY_PARAMS(n, T, x) )  \
    5353        : member( BOOST_PP_ENUM_PARAMS(n, x) )                         \
    5454        {}                                                             \
    5555    /**/
     
    142142        : member()
    143143        {}
    144144
    145     BOOST_PP_REPEAT_FROM_TO( 1, BOOST_PP_INC(BOOST_BASE_FROM_MEMBER_MAX_ARITY),
     145    template < typename T0 > explicit base_from_member( T0 x0 ) : member( x0 ) {}
     146    BOOST_PP_REPEAT_FROM_TO( 2, BOOST_PP_INC(BOOST_BASE_FROM_MEMBER_MAX_ARITY),
    146147     BOOST_PRIVATE_CTR_DEF, _ )
    147148#endif
    148149