mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 02:44:10 +00:00
Revert incorrect reversion of adf57817ec09cb8edd6032a30da6daec3edbe23f
This commit is contained in:
parent
87b8e03ca9
commit
ad61f347e4
@ -34,16 +34,8 @@ template<class T> class reference_wrapper
|
||||
public:
|
||||
typedef T type;
|
||||
|
||||
#if defined( BOOST_MSVC ) && BOOST_WORKAROUND( BOOST_MSVC, < 1300 )
|
||||
|
||||
explicit reference_wrapper(T& t): t_(&t) {}
|
||||
|
||||
#else
|
||||
|
||||
BOOST_FORCEINLINE explicit reference_wrapper(T& t): t_(boost::addressof(t)) {}
|
||||
|
||||
#endif
|
||||
|
||||
BOOST_FORCEINLINE operator T& () const { return *t_; }
|
||||
|
||||
BOOST_FORCEINLINE T& get() const { return *t_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user