any_conversion_eater.hpp 619 B

12345678910111213141516171819
  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 { namespace detail {
  7. // This type can be used in traits to "eat" up the one user-defined
  8. // implicit conversion allowed.
  9. struct any_conversion_eater
  10. {
  11. template <class T>
  12. any_conversion_eater(T const&);
  13. };
  14. }} // namespace boost::detail
  15. #endif // ANY_CONVERSION_EATER_DWA20031117_HPP