mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-30 04:47:20 +02:00
Use use_default from Boost.Core
boost::use_default is now defined in Core for multiple Boost libraries.
This commit is contained in:
@ -4,6 +4,8 @@
|
|||||||
#ifndef FACADE_ITERATOR_CATEGORY_DWA20031118_HPP
|
#ifndef FACADE_ITERATOR_CATEGORY_DWA20031118_HPP
|
||||||
# define FACADE_ITERATOR_CATEGORY_DWA20031118_HPP
|
# define FACADE_ITERATOR_CATEGORY_DWA20031118_HPP
|
||||||
|
|
||||||
|
# include <boost/core/use_default.hpp>
|
||||||
|
|
||||||
# include <boost/iterator/iterator_categories.hpp>
|
# include <boost/iterator/iterator_categories.hpp>
|
||||||
|
|
||||||
# include <boost/mpl/or.hpp> // used in iterator_tag inheritance logic
|
# include <boost/mpl/or.hpp> // used in iterator_tag inheritance logic
|
||||||
@ -33,8 +35,7 @@
|
|||||||
namespace boost {
|
namespace boost {
|
||||||
namespace iterators {
|
namespace iterators {
|
||||||
|
|
||||||
// forward declaration
|
using boost::use_default;
|
||||||
struct use_default;
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include <boost/static_assert.hpp>
|
#include <boost/static_assert.hpp>
|
||||||
|
|
||||||
|
#include <boost/core/use_default.hpp>
|
||||||
|
|
||||||
#include <boost/iterator/iterator_categories.hpp>
|
#include <boost/iterator/iterator_categories.hpp>
|
||||||
#include <boost/iterator/iterator_facade.hpp>
|
#include <boost/iterator/iterator_facade.hpp>
|
||||||
#include <boost/iterator/detail/enable_if.hpp>
|
#include <boost/iterator/detail/enable_if.hpp>
|
||||||
@ -35,12 +37,10 @@ namespace iterators {
|
|||||||
// Used as a default template argument internally, merely to
|
// Used as a default template argument internally, merely to
|
||||||
// indicate "use the default", this can also be passed by users
|
// indicate "use the default", this can also be passed by users
|
||||||
// explicitly in order to specify that the default should be used.
|
// explicitly in order to specify that the default should be used.
|
||||||
struct use_default;
|
using boost::use_default;
|
||||||
|
|
||||||
} // namespace iterators
|
} // namespace iterators
|
||||||
|
|
||||||
using iterators::use_default;
|
|
||||||
|
|
||||||
// the incompleteness of use_default causes massive problems for
|
// the incompleteness of use_default causes massive problems for
|
||||||
// is_convertible (naturally). This workaround is fortunately not
|
// is_convertible (naturally). This workaround is fortunately not
|
||||||
// needed for vc6/vc7.
|
// needed for vc6/vc7.
|
||||||
|
Reference in New Issue
Block a user