forked from boostorg/unordered
Const methods in value_base.
This commit is contained in:
1 parent
5f5f8ef1e4
commit
9c4c3a754a
1 file changed
+4
@@ -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&);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user