diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/value_initializer.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/value_initializer.h b/include/value_initializer.h index 57e78ec518..8f0ebaf60e 100644 --- a/include/value_initializer.h +++ b/include/value_initializer.h @@ -45,11 +45,13 @@ public: value_initializer(std::string&& str); value_initializer(const char* str); - value& get() const; + value& get(); + const value& get() const; + operator value&(); + operator const value&() const; private: - mutable value value_; //FIXME: std::initializer_list objects are constant. - //This solution will probably fail + value value_; }; } |
