Ticket #12140: base_from_member.diff
File base_from_member.diff, 1.0 KB (added by , 7 years ago) |
---|
-
Boost/BUILD/boost/utility/base_from_member.hpp
old new 49 49 50 50 #define BOOST_PRIVATE_CTR_DEF( z, n, data ) \ 51 51 template < BOOST_PP_ENUM_PARAMS(n, typename T) > \ 52 explicitbase_from_member( BOOST_PP_ENUM_BINARY_PARAMS(n, T, x) ) \52 base_from_member( BOOST_PP_ENUM_BINARY_PARAMS(n, T, x) ) \ 53 53 : member( BOOST_PP_ENUM_PARAMS(n, x) ) \ 54 54 {} \ 55 55 /**/ … … 142 142 : member() 143 143 {} 144 144 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), 146 147 BOOST_PRIVATE_CTR_DEF, _ ) 147 148 #endif 148 149