conversion_traits.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // (c) Copyright Fernando Luis Cacciola Carballal 2000-2004
  2. // Use, modification, and distribution is subject to the Boost Software
  3. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // See library home page at http://www.boost.org/libs/numeric/conversion
  6. //
  7. // Contact the author at: fernando_cacciola@hotmail.com
  8. //
  9. #ifndef BOOST_NUMERIC_CONVERSION_CONVERSION_TRAITS_FLC_12NOV2002_HPP
  10. #define BOOST_NUMERIC_CONVERSION_CONVERSION_TRAITS_FLC_12NOV2002_HPP
  11. #include "boost/numeric/conversion/detail/conversion_traits.hpp"
  12. #include "boost/detail/workaround.hpp"
  13. #include "boost/config.hpp"
  14. namespace boost { namespace numeric
  15. {
  16. template<class T, class S>
  17. struct conversion_traits
  18. : convdetail::get_conversion_traits<T,S>::type
  19. {
  20. #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
  21. typedef typename convdetail::get_conversion_traits<T,S>::type base_;
  22. typedef typename base_::target_type target_type;
  23. typedef typename base_::source_type source_type;
  24. typedef typename base_::result_type result_type;
  25. typedef typename base_::argument_type argument_type;
  26. #endif
  27. } ;
  28. } } // namespace boost::numeric
  29. #endif
  30. //
  31. ///////////////////////////////////////////////////////////////////////////////////////////////