Ticket #1420: boost_1_34_1_optional.diff

File boost_1_34_1_optional.diff, 428 bytes (added by rick68@…, 15 years ago)

patch optional<T>::operator=.

  • optional.hpp

     
    550550    //  (NOTE: On BCB, this operator is not actually called and left is left UNMODIFIED in case of a throw)
    551551    optional& operator= ( optional const& rhs )
    552552      {
    553         this->assign( rhs ) ;
     553        this->assign( static_cast<base const&>(rhs) ) ;
    554554        return *this ;
    555555      }