Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Tests please! They should be somewhere under test/std/utilities/optional/optional.object/optional.object.observe
Comment Actions
The changes to <optional> LGTM but not the ones to <experimental/optional>
Unfortunately libc++'s <experimental/optional> doesn't yet implement LFTS v2 so all of the other non-const observers are also not constexpr in our implementation. I think updating <experimental/optional> to LFTS v2 should be done as a separate patch. Please back out the changes to <experimental/optional> before committing.
test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp | ||
---|---|---|
48 | This test doesn't compile since the non-const version of std::experimental::optional::operator*() isn't constexpr. |
This test doesn't compile since the non-const version of std::experimental::optional::operator*() isn't constexpr.