mirror of
https://github.com/boostorg/optional.git
synced 2025-07-23 00:57:15 +02:00
Compare commits
29 Commits
svn-branch
...
boost-1.35
Author | SHA1 | Date | |
---|---|---|---|
2bf3be2eee | |||
4c11dcc703 | |||
eb19cc2729 | |||
5956702c32 | |||
9afdbe65e7 | |||
f6518df0c4 | |||
05a685b035 | |||
3b5b5d82a0 | |||
06ba35cd42 | |||
3499d477dc | |||
a690c8e7a2 | |||
4ba562871e | |||
3ff4258fbb | |||
35040aab6a | |||
bfd5cc0a87 | |||
0fd45d73b1 | |||
3bf8d0f1b4 | |||
789cb2b24f | |||
7287f2bf11 | |||
b6a1946a60 | |||
9bbde2be14 | |||
f258713788 | |||
3dc3f46d66 | |||
c23c21d9c2 | |||
5182283649 | |||
4599ae0bfd | |||
9ccefc8349 | |||
0961a6598a | |||
03248b5fd8 |
@ -516,7 +516,7 @@ class optional : public optional_detail::optional_base<T>
|
||||
|
||||
// Creates a deep copy of another optional<T>
|
||||
// Can throw if T::T(T const&) does
|
||||
optional ( optional const& rhs ) : base( static_cast<base const&>(rhs) ) {}
|
||||
optional ( optional const& rhs ) : base(rhs) {}
|
||||
|
||||
// No-throw (assuming T::~T() doesn't)
|
||||
~optional() {}
|
||||
@ -550,7 +550,7 @@ class optional : public optional_detail::optional_base<T>
|
||||
// (NOTE: On BCB, this operator is not actually called and left is left UNMODIFIED in case of a throw)
|
||||
optional& operator= ( optional const& rhs )
|
||||
{
|
||||
this->assign( static_cast<base const&>(rhs) ) ;
|
||||
this->assign( rhs ) ;
|
||||
return *this ;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user