Skip to content

Commit

Permalink
Update enum_name.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mguludag authored Jul 16, 2023
1 parent d36c5b2 commit e0a786d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/enum_name.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,17 @@ class optional {
other.has_value_ = std::move(has_value_);
has_value_ = std::move(hval);
}
MG_ENUM_NAME_CNSTXPR inline T operator*() {
MG_ENUM_NAME_CNSTXPR inline T& operator*() {
return value_;
}
MG_ENUM_NAME_CNSTXPR inline T operator*() const {
MG_ENUM_NAME_CNSTXPR inline T& operator*() const {
return value_;
}
MG_ENUM_NAME_CNSTXPR inline T value() {
MG_ENUM_NAME_CNSTXPR inline T& value() {
if (!has_value_) throw detail::bad_optional_access();
return value_;
}
MG_ENUM_NAME_CNSTXPR inline T value() const {
MG_ENUM_NAME_CNSTXPR inline T& value() const {
if (!has_value_) throw detail::bad_optional_access();
return value_;
}
Expand Down

0 comments on commit e0a786d

Please sign in to comment.