summaryrefslogtreecommitdiff
path: root/boost/compute/type_traits/detail/capture_traits.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/compute/type_traits/detail/capture_traits.hpp')
-rw-r--r--boost/compute/type_traits/detail/capture_traits.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/boost/compute/type_traits/detail/capture_traits.hpp b/boost/compute/type_traits/detail/capture_traits.hpp
new file mode 100644
index 0000000000..e790f80696
--- /dev/null
+++ b/boost/compute/type_traits/detail/capture_traits.hpp
@@ -0,0 +1,33 @@
+//---------------------------------------------------------------------------//
+// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
+//
+// Distributed under the Boost Software License, Version 1.0
+// See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt
+//
+// See http://boostorg.github.com/compute for more information.
+//---------------------------------------------------------------------------//
+
+#ifndef BOOST_COMPUTE_TYPE_TRAITS_DETAIL_CAPTURE_TRAITS_HPP
+#define BOOST_COMPUTE_TYPE_TRAITS_DETAIL_CAPTURE_TRAITS_HPP
+
+#include <boost/compute/type_traits/type_name.hpp>
+
+namespace boost {
+namespace compute {
+namespace detail {
+
+template<class T>
+struct capture_traits
+{
+ static std::string type_name()
+ {
+ return ::boost::compute::type_name<T>();
+ }
+};
+
+} // end detail namespace
+} // end compute namespace
+} // end boost namespace
+
+#endif // BOOST_COMPUTE_TYPE_TRAITS_DETAIL_CAPTURE_TRAITS_HPP