mirror of
https://github.com/boostorg/utility.git
synced 2025-05-11 05:14:02 +00:00
Roll back addressof() patch temporarily
[SVN r13428]
This commit is contained in:
parent
ec188c7c3e
commit
029ff9828f
@ -6,7 +6,6 @@
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# include <boost/config.hpp>
|
# include <boost/config.hpp>
|
||||||
# include <boost/utility/addressof.hpp>
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// ref.hpp - ref/cref, useful helper functions
|
// ref.hpp - ref/cref, useful helper functions
|
||||||
@ -31,7 +30,7 @@ template<class T> class reference_wrapper
|
|||||||
public:
|
public:
|
||||||
typedef T type;
|
typedef T type;
|
||||||
|
|
||||||
explicit reference_wrapper(T& t): t_(addressof(t)) {}
|
explicit reference_wrapper(T& t): t_(&t) {}
|
||||||
|
|
||||||
operator T& () const { return *t_; }
|
operator T& () const { return *t_; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user