summaryrefslogtreecommitdiffstats
path: root/include/framework/structure/ExtensionStructure.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/structure/ExtensionStructure.h')
-rw-r--r--include/framework/structure/ExtensionStructure.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/framework/structure/ExtensionStructure.h b/include/framework/structure/ExtensionStructure.h
index 62c27f5..60fb6c7 100644
--- a/include/framework/structure/ExtensionStructure.h
+++ b/include/framework/structure/ExtensionStructure.h
@@ -27,7 +27,10 @@ class ExtensionStructure {
typedef std::vector<std::shared_ptr<InternalLevel<ShardType, QueryType>>>
LevelVector;
public:
- ExtensionStructure() = default;
+ ExtensionStructure() {
+ m_levels.emplace_back(std::make_shared<InternalLevel<ShardType, QueryType>>(0));
+ }
+
~ExtensionStructure() = default;
/*
@@ -217,7 +220,6 @@ public:
}
void append_l0(std::shared_ptr<ShardType> shard) {
- // FIXME: ensure that there's always a level 0 in the version
m_levels[0]->append(shard);
}