Match and link CParticleGen

Former-commit-id: 25f0b7229b
This commit is contained in:
2023-02-04 01:18:12 -08:00
parent 3c4bc7273d
commit ceeddca348
6 changed files with 47 additions and 40 deletions

View File

@@ -69,7 +69,9 @@ private:
};
node* create_node(node* prev, node* next, const T& val) {
node* n = new node(prev, next);
node* n;
x0_allocator.allocate(n, 1);
new(n) node(prev, next);
construct(n->get_value(), val);
return n;
}