summaryrefslogtreecommitdiff
path: root/project2/common/columns.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/common/columns.h')
-rw-r--r--project2/common/columns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/project2/common/columns.h b/project2/common/columns.h
index bc62447..d3e2c97 100644
--- a/project2/common/columns.h
+++ b/project2/common/columns.h
@@ -10,6 +10,7 @@ class Column : public IntrusivePtrBase {
public:
Column(unsigned int idx, ScriptNodePtr p);
Column(unsigned int i, const Glib::ustring & n, const Variable & v = Variable(Null()));
+ virtual ~Column() = default;
static Column * make(unsigned int idx, ScriptNodePtr p);
@@ -21,7 +22,8 @@ class Column : public IntrusivePtrBase {
struct byColIdx {};
struct byColName {};
-typedef boost::multi_index::multi_index_container<boost::intrusive_ptr<Column>,
+typedef boost::intrusive_ptr<Column> ColumnPtr;
+typedef boost::multi_index::multi_index_container<ColumnPtr,
boost::multi_index::indexed_by<
boost::multi_index::ordered_unique<
boost::multi_index::tag<byColName>, BOOST_MULTI_INDEX_MEMBER(Column, const std::string, key)>,