mirror of
https://github.com/boostorg/core.git
synced 2025-11-29 22:00:17 +01:00
Remove reference-collapsing overloads of ref and cref.
This commit is contained in:
@@ -141,15 +141,6 @@ template<class T> BOOST_FORCEINLINE reference_wrapper<T> BOOST_REF_CONST ref( T
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
@return `ref(t.get())`
|
||||
@remark Does not throw.
|
||||
*/
|
||||
template<class T> BOOST_FORCEINLINE reference_wrapper<T> BOOST_REF_CONST ref( reference_wrapper<T> t )
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
// cref
|
||||
|
||||
/**
|
||||
@@ -161,15 +152,6 @@ template<class T> BOOST_FORCEINLINE reference_wrapper<T const> BOOST_REF_CONST c
|
||||
return reference_wrapper<T const>(t);
|
||||
}
|
||||
|
||||
/**
|
||||
@return `cref(t.get())`
|
||||
@remark Does not throw.
|
||||
*/
|
||||
template<class T> BOOST_FORCEINLINE reference_wrapper<T const> BOOST_REF_CONST cref( reference_wrapper<T> t )
|
||||
{
|
||||
return reference_wrapper<T const>(t.get());
|
||||
}
|
||||
|
||||
#undef BOOST_REF_CONST
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||
|
||||
Reference in New Issue
Block a user