At the end of this series, I belatedly realized that values should
only be destroyed by value_decref. This patch marks the the
destructor private to enforce this.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
{
}
+ /* Values can only be destroyed via the reference-counting
+ mechanism. */
+ ~value ();
+
+ DISABLE_COPY_AND_ASSIGN (value);
+
public:
/* Allocate a lazy value for type TYPE. Its actual content is
storage. */
struct value *copy () const;
- ~value ();
-
- DISABLE_COPY_AND_ASSIGN (value);
-
/* Type of the value. */
struct type *type () const
{ return m_type; }