Skip to content

Commit

Permalink
Updated NodePtr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-staal committed Mar 7, 2024
1 parent 44cea4b commit 94b30f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/ast_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const Node>;

class NodeList : public Node
Expand Down

0 comments on commit 94b30f4

Please sign in to comment.