summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-02 06:28:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-02 06:28:31 +0200
commit86a8b67400d42270839ddce946dbc2f49dd4c855 (patch)
treeb00ba7c9a79f9fd6a046ca0052a3246f1214c049
parent04ff6af035a2e1064cce2b3189c13f7a45fdca4a (diff)
options: misc
-rw-r--r--options/value.hpp6
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);