diff --git a/include/boost/ref.hpp b/include/boost/ref.hpp index e45dd17..c7e23ca 100644 --- a/include/boost/ref.hpp +++ b/include/boost/ref.hpp @@ -6,7 +6,6 @@ # endif # include -# include // // ref.hpp - ref/cref, useful helper functions @@ -31,7 +30,7 @@ template class reference_wrapper public: typedef T type; - explicit reference_wrapper(T& t): t_(addressof(t)) {} + explicit reference_wrapper(T& t): t_(&t) {} operator T& () const { return *t_; }