diff options
Diffstat (limited to 'src/tree.cc')
-rw-r--r-- | src/tree.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.cc b/src/tree.cc index e377c95..bc1414b 100644 --- a/src/tree.cc +++ b/src/tree.cc @@ -100,7 +100,7 @@ std::string Tree::print() { template <typename NType, typename... Args> Node* Tree::addNode(Node** place, Args&&... args) { this->node_collection_.emplace_back( - new NType(std::forward<Args>(args)...) + std::make_unique<NType>(std::forward<Args>(args)...) ); if ( place != nullptr ) { |