capture_traits.hpp 959 B

123456789101112131415161718192021222324252627282930313233
  1. //---------------------------------------------------------------------------//
  2. // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. // See http://boostorg.github.com/compute for more information.
  9. //---------------------------------------------------------------------------//
  10. #ifndef BOOST_COMPUTE_TYPE_TRAITS_DETAIL_CAPTURE_TRAITS_HPP
  11. #define BOOST_COMPUTE_TYPE_TRAITS_DETAIL_CAPTURE_TRAITS_HPP
  12. #include <boost/compute/type_traits/type_name.hpp>
  13. namespace boost {
  14. namespace compute {
  15. namespace detail {
  16. template<class T>
  17. struct capture_traits
  18. {
  19. static std::string type_name()
  20. {
  21. return ::boost::compute::type_name<T>();
  22. }
  23. };
  24. } // end detail namespace
  25. } // end compute namespace
  26. } // end boost namespace
  27. #endif // BOOST_COMPUTE_TYPE_TRAITS_DETAIL_CAPTURE_TRAITS_HPP