diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-02 06:28:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-02 06:28:31 +0200 |
commit | 86a8b67400d42270839ddce946dbc2f49dd4c855 (patch) | |
tree | b00ba7c9a79f9fd6a046ca0052a3246f1214c049 /options/value.hpp | |
parent | 04ff6af035a2e1064cce2b3189c13f7a45fdca4a (diff) |
options: misc
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); |