Factor out any_conversion_eater

[SVN r20838]
This commit is contained in:
Dave Abrahams
2003-11-18 03:00:39 +00:00
parent 76880f6ce2
commit 8d5717081e
2 changed files with 6 additions and 14 deletions

View File

@ -8,8 +8,10 @@
#include <boost/detail/iterator.hpp> #include <boost/detail/iterator.hpp>
#include <boost/iterator.hpp> #include <boost/iterator.hpp>
// should be the last #include
#include <boost/type_traits/detail/bool_trait_def.hpp> #include <boost/type_traits/detail/bool_trait_def.hpp>
#include <boost/iterator/detail/any_conversion_eater.hpp>
// should be the last #include
#include <boost/iterator/detail/config_def.hpp> #include <boost/iterator/detail/config_def.hpp>
namespace boost { namespace boost {
@ -36,12 +38,6 @@ namespace detail
#endif #endif
struct any_conversion_eater
{
template <class T>
any_conversion_eater(T const&);
};
// Guts of is_lvalue_iterator. Value is the iterator's value_type // Guts of is_lvalue_iterator. Value is the iterator's value_type
// and the result is computed in the nested rebind template. // and the result is computed in the nested rebind template.
template <class Value> template <class Value>

View File

@ -7,20 +7,16 @@
#include <boost/mpl/bool.hpp> #include <boost/mpl/bool.hpp>
#include <boost/detail/iterator.hpp> #include <boost/detail/iterator.hpp>
// should be the last #include
#include <boost/type_traits/detail/bool_trait_def.hpp> #include <boost/type_traits/detail/bool_trait_def.hpp>
#include <boost/iterator/detail/any_conversion_eater.hpp>
// should be the last #include
#include <boost/iterator/detail/config_def.hpp> #include <boost/iterator/detail/config_def.hpp>
namespace boost { namespace boost {
namespace detail namespace detail
{ {
struct any_conversion_eater
{
template <class T>
any_conversion_eater(T const&);
};
// Guts of is_readable_iterator. Value is the iterator's value_type // Guts of is_readable_iterator. Value is the iterator's value_type
// and the result is computed in the nested rebind template. // and the result is computed in the nested rebind template.
template <class Value> template <class Value>