From 94b30f4be78c8f3052ae2e01e3d301d19a471d8e Mon Sep 17 00:00:00 2001 From: Simon Staal Date: Thu, 7 Mar 2024 23:10:55 +0000 Subject: [PATCH] Updated NodePtr comment --- include/ast_node.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ast_node.hpp b/include/ast_node.hpp index 4025b5f..373e3f1 100644 --- a/include/ast_node.hpp +++ b/include/ast_node.hpp @@ -19,6 +19,7 @@ class Node // If you don't feel comfortable using std::unique_ptr, you can switch NodePtr to be defined // as a raw pointer instead here and your project should still compile, although you'll need // to add destructors to avoid leaking memory +// (and get rid of the now unnecessary std::move-s) using NodePtr = std::unique_ptr; class NodeList : public Node