forked from boostorg/smart_ptr
Fixed perfect forwarding for make_shared() in trunk, and added
corresponding test. Refs #2962. [SVN r57520]
This commit is contained in:
@@ -86,10 +86,12 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
template< class T > T forward( T t )
|
||||
#if defined( BOOST_HAS_RVALUE_REFS )
|
||||
template< class T > T&& forward( T &&t )
|
||||
{
|
||||
return t;
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace detail
|
||||
|
||||
|
||||
Reference in New Issue
Block a user