any_conversion_eater.hpp 653 B

123456789101112131415161718192021
  1. // Copyright David Abrahams 2003. Use, modification and distribution is
  2. // subject to the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef ANY_CONVERSION_EATER_DWA20031117_HPP
  5. # define ANY_CONVERSION_EATER_DWA20031117_HPP
  6. namespace boost {
  7. namespace iterators {
  8. namespace detail {
  9. // This type can be used in traits to "eat" up the one user-defined
  10. // implicit conversion allowed.
  11. struct any_conversion_eater
  12. {
  13. template <class T>
  14. any_conversion_eater(T const&);
  15. };
  16. }}} // namespace boost::iterators::detail
  17. #endif // ANY_CONVERSION_EATER_DWA20031117_HPP