Merge branch 'feature/library_intermediate' into feature/library_intermediate2
This commit is contained in:
commit
ce612145d1
@ -120,7 +120,7 @@ namespace cpputils {
|
||||
}
|
||||
}
|
||||
// warning: opposed to the other left_opt variants, this one already moves the content and returns by value.
|
||||
boost::optional<Left> left_opt() && noexcept(noexcept(boost::optional<Left>(std::move(_left)))) {
|
||||
boost::optional<Left> left_opt() && noexcept(noexcept(boost::optional<Left>(std::move(std::declval<either<Left, Right>>()._left)))) {
|
||||
if (_side == Side::left) {
|
||||
return std::move(_left);
|
||||
} else {
|
||||
@ -144,7 +144,7 @@ namespace cpputils {
|
||||
}
|
||||
}
|
||||
// warning: opposed to the other left_opt variants, this one already moves the content and returns by value.
|
||||
boost::optional<Right> right_opt() && noexcept(noexcept(boost::optional<Right>(std::move(_right)))) {
|
||||
boost::optional<Right> right_opt() && noexcept(noexcept(boost::optional<Right>(std::move(std::declval<either<Left, Right>>()._right)))) {
|
||||
if (_side == Side::right) {
|
||||
return std::move(_right);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user