diff --git a/peglib.h b/peglib.h index a636ec3..14b2628 100644 --- a/peglib.h +++ b/peglib.h @@ -3010,7 +3010,7 @@ struct AstBase : public Annotation const std::string token; std::vector>> nodes; - std::shared_ptr> parent; + std::weak_ptr> parent; }; template