summaryrefslogtreecommitdiff
path: root/boost/hof/detail/remove_rvalue_reference.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hof/detail/remove_rvalue_reference.hpp')
-rw-r--r--boost/hof/detail/remove_rvalue_reference.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/boost/hof/detail/remove_rvalue_reference.hpp b/boost/hof/detail/remove_rvalue_reference.hpp
new file mode 100644
index 0000000000..7de2879eaf
--- /dev/null
+++ b/boost/hof/detail/remove_rvalue_reference.hpp
@@ -0,0 +1,26 @@
+/*=============================================================================
+ Copyright (c) 2014 Paul Fultz II
+ remove_rvalue_reference.h
+ 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)
+==============================================================================*/
+
+#ifndef BOOST_HOF_GUARD_FUNCTION_REMOVE_RVALUE_REFERENCE_H
+#define BOOST_HOF_GUARD_FUNCTION_REMOVE_RVALUE_REFERENCE_H
+
+namespace boost { namespace hof { namespace detail {
+
+template<class T>
+struct remove_rvalue_reference
+{
+ typedef T type;
+};
+
+template<class T>
+struct remove_rvalue_reference<T&&>
+: remove_rvalue_reference<T>
+{};
+
+}}} // namespace boost::hof
+
+#endif