Ticket #5419: list_of_cxx0x_2.patch

File list_of_cxx0x_2.patch, 1018 bytes (added by Michel MORIN <mimomorin@…>, 11 years ago)

A new patch for list_of.hpp (previous patch is incomplete).

  • boost/assign/list_of.hpp

     
    430430            return range( boost::begin(r), boost::end(r) );
    431431        }
    432432
     433#ifdef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
    433434        template< class Container >
     435#else
     436        template< class Container, class Dummy = typename Container::difference_type >
     437#endif
    434438        operator Container() const
    435439        {
    436440            return this-> BOOST_NESTED_TEMPLATE convert_to_container<Container>();
     
    566570            return range( boost::begin(r), boost::end(r) );
    567571        }
    568572
     573#ifdef BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS
    569574        template< class Container >
     575#else
     576        template< class Container, class Dummy = typename Container::difference_type >
     577#endif
    570578        operator Container() const
    571579        {
    572580            return this-> BOOST_NESTED_TEMPLATE convert_to_container<Container>();