Silicium
move.hpp
Go to the documentation of this file.
1 #ifndef SILICIUM_MOVE_HPP
2 #define SILICIUM_MOVE_HPP
3 
4 #include <silicium/config.hpp>
5 #include <boost/static_assert.hpp>
6 
7 namespace Si
8 {
9  template <class T>
10  typename std::remove_reference<T>::type &&move(T &&ref)
11  {
12  BOOST_STATIC_ASSERT(!std::is_const<T>::value);
13  return static_cast<typename std::remove_reference<T>::type &&>(ref);
14  }
15 }
16 
17 #endif
std::remove_reference< T >::type && move(T &&ref)
Definition: move.hpp:10
BOOST_STATIC_ASSERT(Si::is_handle< absolute_path >::value)
Definition: absolute_path.hpp:19