summaryrefslogtreecommitdiff
path: root/include/value_initializer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/value_initializer.h')
-rw-r--r--include/value_initializer.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/value_initializer.h b/include/value_initializer.h
index 8f0ebaf60e..f50527546d 100644
--- a/include/value_initializer.h
+++ b/include/value_initializer.h
@@ -27,8 +27,10 @@ namespace nbt
/**
* @brief Helper class for implicitly constructing value objects
+ * @note Instances of this class can unproblematically be "sliced" (converted)
+ * into @ref value objects.
*/
-class value_initializer
+class value_initializer : public value
{
public:
value_initializer(std::unique_ptr<tag>&& t);
@@ -44,14 +46,6 @@ public:
value_initializer(const std::string& str);
value_initializer(std::string&& str);
value_initializer(const char* str);
-
- value& get();
- const value& get() const;
- operator value&();
- operator const value&() const;
-
-private:
- value value_;
};
}