Fixed perfect forwarding for make_shared() in trunk, and added

corresponding test.  Refs #2962.



[SVN r57520]
This commit is contained in:
Frank Mori Hess
2009-11-09 18:12:35 +00:00
parent 502de325ee
commit 18bfaea996
3 changed files with 102 additions and 1 deletions
+3 -1
View File
@@ -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