Changeset 61467


Ignore:
Timestamp:
Apr 21, 2010, 5:19:06 PM (8 years ago)
Author:
Hartmut Kaiser
Message:

MPL: fixed #4061: gcc-4.5 compilation problems related to arity_helper, applied attached patch to the main aux_/template_arity.hpp and regenerated the corresponding file preprocessed/gcc/template_arity.hpp. No other preprocessed files are affected.

This patch seemed to be fine as all it does is to qualify an internal name in order to avoid it being looked up through ADL. This appears to be reasonably safe as this name is internal and not supposed to be found using ADL in the first place.

Location:
trunk/boost/mpl/aux_
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp

    r24957 r61467  
    77//
    88
    9 // Preprocessed version of "boost/mpl/aux_/template_arity.hpp" header
     9// *Preprocessed* version of the main "template_arity.hpp" header
    1010// -- DO NOT modify by hand!
    1111
    1212namespace boost { namespace mpl { namespace aux {
    13 
    1413template< int N > struct arity_tag
    1514{
     
    2423    BOOST_STATIC_CONSTANT(int, value =
    2524          ( C6 > 0 ? C6 : ( C5 > 0 ? C5 : ( C4 > 0 ? C4 : ( C3 > 0 ? C3 : ( C2 > 0 ? C2 : ( C1 > 0 ? C1 : -1 ) ) ) ) ) )
    26 
    2725        );
    2826};
     
    8482{
    8583    BOOST_STATIC_CONSTANT(int, value =
    86           sizeof(arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1
     84          sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1
    8785        );
    8886};
     
    9391    BOOST_STATIC_CONSTANT(int, value  = (
    9492          max_arity< template_arity_impl< F,1 >::value, template_arity_impl< F,2 >::value, template_arity_impl< F,3 >::value, template_arity_impl< F,4 >::value, template_arity_impl< F,5 >::value, template_arity_impl< F,6 >::value >::value
    95 
    9693        ));
    97 
    9894    typedef mpl::int_<value> type;
    9995};
  • trunk/boost/mpl/aux_/template_arity.hpp

    r49239 r61467  
    9999{
    100100    BOOST_STATIC_CONSTANT(int, value =
    101           sizeof(arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1
     101          sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1
    102102        );
    103103};
Note: See TracChangeset for help on using the changeset viewer.