Ticket #11181: 11181.patch

File 11181.patch, 1.3 KB (added by nat@…, 7 years ago)

patch implementing Steven's suggested workaround

  • boost/type_erasure/is_placeholder.hpp

    diff -r a61827ccf94f boost/boost/type_erasure/is_placeholder.hpp
    a b  
    1313
    1414#include <boost/mpl/bool.hpp>
    1515#include <boost/type_traits/is_base_and_derived.hpp>
     16// https://svn.boost.org/trac/boost/ticket/11181
     17#include <boost/iterator/iterator_adaptor.hpp> // use_default
    1618#include <boost/type_erasure/placeholder.hpp>
    1719
    1820namespace boost {
    1921
    20 /** INTERNAL ONLY */
    21 struct use_default;
    22 
    2322namespace type_erasure {
    2423
    2524/** A metafunction that indicates whether a type is a @ref placeholder. */
  • boost/type_erasure/iterator.hpp

    diff -r a61827ccf94f boost/boost/type_erasure/iterator.hpp
    a b  
    1515#include <boost/mpl/vector.hpp>
    1616#include <boost/mpl/if.hpp>
    1717#include <boost/iterator/iterator_categories.hpp>
     18// https://svn.boost.org/trac/boost/ticket/11181
     19#include <boost/iterator/iterator_adaptor.hpp> // use_default
    1820#include <boost/type_traits/remove_const.hpp>
    1921#include <boost/type_traits/remove_reference.hpp>
    2022#include <boost/type_erasure/operators.hpp>
     
    2426
    2527namespace boost {
    2628
    27 struct use_default;
    28 
    2929namespace type_erasure {
    3030
    3131namespace detail {