Value&& value() && {
return std::move(value_);
}
- // TODO (t17322426): remove when VS2015 support is deprecated
- // VS2015 static analyzer incorrectly flags these as unreachable in certain
- // circumstances. VS2017 does not have this problem on the same code.
- FOLLY_PUSH_WARNING
- FOLLY_MSVC_DISABLE_WARNING(4702) // unreachable code
Error& error() & {
return error_;
}
Error&& error() && {
return std::move(error_);
}
- FOLLY_POP_WARNING
};
template <class Value, class Error>
Value&& value() && {
return std::move(value_);
}
- // TODO (t17322426): remove when VS2015 support is deprecated
- // VS2015 static analyzer incorrectly flags these as unreachable in certain
- // circumstances. VS2017 does not have this problem on the same code.
- FOLLY_PUSH_WARNING
- FOLLY_MSVC_DISABLE_WARNING(4702) // unreachable code
Error& error() & {
return error_;
}
Error&& error() && {
return std::move(error_);
}
- FOLLY_POP_WARNING
};
namespace expected_detail_ExpectedHelper {