We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f0b1df commit 52bb9a3Copy full SHA for 52bb9a3
1 file changed
optional.h
@@ -40,7 +40,7 @@ class optional {
40
else
41
WISE_ENUM_OPTIONAL_BAD_ACCESS;
42
}
43
- constexpr const T &value() const & {
+ WISE_ENUM_CONSTEXPR_14 const T &value() const & {
44
if (m_active)
45
return m_t;
46
@@ -53,15 +53,15 @@ class optional {
53
54
55
56
- constexpr const T &&value() const && {
+ WISE_ENUM_CONSTEXPR_14 const T &&value() const && {
57
58
59
60
61
62
63
template <class U>
64
- constexpr T value_or(U &&u) {
+ WISE_ENUM_CONSTEXPR_14 T value_or(U &&u) {
65
66
67
0 commit comments