mirror of https://github.com/libAthena/athena.git
GCC compatibility fixes
This commit is contained in:
parent
d2fb800b92
commit
617c121675
|
@ -554,11 +554,15 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr T const& value() const {
|
constexpr T const& value() const {
|
||||||
return initialized() ? contained_val() : atFatal("bad optional access");
|
if (!initialized())
|
||||||
|
atFatal("bad optional access");
|
||||||
|
return contained_val();
|
||||||
}
|
}
|
||||||
|
|
||||||
T& value() {
|
T& value() {
|
||||||
return initialized() ? contained_val() : atFatal("bad optional access");
|
if (!initialized())
|
||||||
|
atFatal("bad optional access");
|
||||||
|
return contained_val();
|
||||||
}
|
}
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue