dtclass.hpp 837 B

12345678910111213141516171819202122232425262728293031323334
  1. // (C) Copyright Edward Diener 2011,2012,2013
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_TTI_DETAIL_TCLASS_HPP)
  6. #define BOOST_TTI_DETAIL_TCLASS_HPP
  7. #include <boost/mpl/eval_if.hpp>
  8. #include <boost/mpl/identity.hpp>
  9. #include <boost/type_traits/is_class.hpp>
  10. namespace boost
  11. {
  12. namespace tti
  13. {
  14. namespace detail
  15. {
  16. template <class BOOST_TTI_DETAIL_TP_T>
  17. struct tclass :
  18. boost::mpl::eval_if
  19. <
  20. boost::is_class<BOOST_TTI_DETAIL_TP_T>,
  21. BOOST_TTI_DETAIL_TP_T,
  22. boost::mpl::identity<BOOST_TTI_DETAIL_TP_T>
  23. >
  24. {
  25. };
  26. }
  27. }
  28. }
  29. #endif // BOOST_TTI_DETAIL_TCLASS_HPP