1
0
forked from boostorg/core

Disable addressof for r-values when possible

This commit is contained in:
Glen Fernandes
2017-04-22 23:50:00 -04:00
parent 46545326d8
commit dc6003e26f
4 changed files with 40 additions and 4 deletions
+10
View File
@@ -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