1 #ifndef SILICIUM_TO_SHARED_HPP
2 #define SILICIUM_TO_SHARED_HPP
11 #if !SILICIUM_COMPILER_HAS_AUTO_RETURN_TYPE
12 -> std::shared_ptr<typename std::decay<T>::type>
15 typedef typename std::decay<T>::type decayed_T;
16 return std::make_shared<decayed_T>(std::forward<T>(t));
auto to_shared(T &&t) -> std::shared_ptr< typename std::decay< T >::type >
Definition: to_shared.hpp:10
Definition: absolute_path.hpp:19