diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-07 17:24:52 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-07 17:24:52 +0200 |
| commit | 780a63c33d80a961002859c13ce79d1ec1db9216 (patch) | |
| tree | ef4a5d48b77570b8367f12c34258b0b7a479e6ed /include | |
| parent | 9ed28be29dafc97a68098dbf94e29c0599376738 (diff) | |
| download | Project-Tick-780a63c33d80a961002859c13ce79d1ec1db9216.tar.gz Project-Tick-780a63c33d80a961002859c13ce79d1ec1db9216.zip | |
Correctly implement value_initializer
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_; }; } |
