Const methods in value_base.

This commit is contained in:
Daniel James
2017-02-27 03:59:02 +00:00
parent 5f5f8ef1e4
commit 9c4c3a754a

View File

@ -2500,8 +2500,12 @@ template <typename ValueType> struct value_base
value_type& value() { return *(ValueType*)this; }
value_type const& value() const { return *(ValueType const*)this; }
value_type* value_ptr() { return (ValueType*)this; }
value_type const* value_ptr() const { return (ValueType const*)this; }
private:
value_base& operator=(value_base const&);
};