diff options
Diffstat (limited to '3rdParty/Boost/src/boost/utility')
| -rw-r--r-- | 3rdParty/Boost/src/boost/utility/addressof.hpp | 3 | ||||
| -rw-r--r-- | 3rdParty/Boost/src/boost/utility/value_init.hpp | 12 | 
2 files changed, 13 insertions, 2 deletions
diff --git a/3rdParty/Boost/src/boost/utility/addressof.hpp b/3rdParty/Boost/src/boost/utility/addressof.hpp index ac42a51..95cd92f 100644 --- a/3rdParty/Boost/src/boost/utility/addressof.hpp +++ b/3rdParty/Boost/src/boost/utility/addressof.hpp @@ -27,6 +27,9 @@ template<class T> struct addr_impl_ref      inline addr_impl_ref( T & v ): v_( v ) {}      inline operator T& () const { return v_; } + +private: +    addr_impl_ref & operator=(const addr_impl_ref &);  };  template<class T> struct addressof_impl diff --git a/3rdParty/Boost/src/boost/utility/value_init.hpp b/3rdParty/Boost/src/boost/utility/value_init.hpp index aa7ecb4..5aefac9 100644 --- a/3rdParty/Boost/src/boost/utility/value_init.hpp +++ b/3rdParty/Boost/src/boost/utility/value_init.hpp @@ -8,6 +8,7 @@  // 24 Dec 2007 (Refactored and worked around various compiler bugs) Fernando Cacciola, Niels Dekker  // 23 May 2008 (Fixed operator= const issue, added initialized_value) Niels Dekker, Fernando Cacciola  // 21 Ago 2008 (Added swap) Niels Dekker, Fernando Cacciola +// 20 Feb 2009 (Fixed logical const-ness issues) Niels Dekker, Fernando Cacciola  //  #ifndef BOOST_UTILITY_VALUE_INIT_21AGO2002_HPP  #define BOOST_UTILITY_VALUE_INIT_21AGO2002_HPP @@ -90,7 +91,12 @@ class value_initialized        wrapper_address()->wrapper::~wrapper();      } -    T& data() const +    T const & data() const +    { +      return wrapper_address()->data; +    } + +    T& data()      {        return wrapper_address()->data;      } @@ -100,7 +106,9 @@ class value_initialized        ::boost::swap( this->data(), arg.data() );      } -    operator T&() const { return this->data(); } +    operator T const &() const { return this->data(); } + +    operator T&() { return this->data(); }  } ;  | 
 Swift