mirror of
https://github.com/boostorg/core.git
synced 2026-05-05 12:14:16 +02:00
Disable addressof for r-values when possible
This commit is contained in:
@@ -262,4 +262,14 @@ addressof(T& o) BOOST_NOEXCEPT
|
||||
} /* boost */
|
||||
#endif
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && \
|
||||
!defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
|
||||
namespace boost {
|
||||
|
||||
template<class T>
|
||||
const T* addressof(const T&&) = delete;
|
||||
|
||||
} /* boost */
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user