diff options
Diffstat (limited to 'options/value.hpp')
-rw-r--r-- | options/value.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/options/value.hpp b/options/value.hpp index 0f5d876f..e8c39445 100644 --- a/options/value.hpp +++ b/options/value.hpp @@ -96,6 +96,12 @@ public: operator t() const { return std::forward<t>(get()); } never_inline + t operator->() const + { + return get(); + } + + never_inline void reload() override { *this = static_cast<t>(*this); |