Ticket #8718: boost_assign_list_of.patch

File boost_assign_list_of.patch, 1.0 KB (added by Adam Romanek <romanek.adam@…>, 9 years ago)
  • boost/assign/list_of.hpp

    diff -Naur .build/boost_1_53_0/boost/assign/list_of.hpp .build/boost_1_53_0_patched/boost/assign/list_of.hpp
    old new  
    1919#include <boost/assign/assignment_exception.hpp>
    2020#include <boost/range/iterator_range.hpp>
    2121#include <boost/config.hpp>
     22#include <boost/throw_exception.hpp>
    2223#include <boost/tuple/tuple.hpp>
    2324#include <boost/type_traits/remove_const.hpp>
    2425#include <boost/type_traits/remove_reference.hpp>
     
    176177#endif           
    177178            const std::size_t sz = ar.size();
    178179            if( sz < static_cast<const DerivedTAssign*>(this)->size() )
    179                 throw assign::assignment_exception( "array initialized with too many elements" );
     180                throw_exception( assign::assignment_exception( "array initialized with too many elements" ) );
    180181            std::size_t n = 0;
    181182            iterator i   = begin(),
    182183                     e   = end();