Ticket #3395: optional.hpp.patch
File optional.hpp.patch, 789 bytes (added by , 13 years ago) |
---|
-
.hpp
old new 28 28 #include "boost/detail/reference_content.hpp" 29 29 #include "boost/none.hpp" 30 30 #include "boost/utility/compare_pointees.hpp" 31 #include "boost/utility/addressof.hpp" 31 32 32 33 #include "boost/optional/optional_fwd.hpp" 33 34 … … 525 526 // Assigns from an expression. See corresponding constructor. 526 527 // Basic Guarantee: If the resolved T ctor throws, this is left UNINITIALIZED 527 528 template<class Expr> 528 optional& operator= ( Expr expr )529 optional& operator= ( Expr const& expr ) 529 530 { 530 this->assign_expr(expr, &expr);531 this->assign_expr(expr,boost::addressof(expr)); 531 532 return *this ; 532 533 } 533 534 #endif