From b4c8ed60a993ecd145ae0732769f84ab8d56fed9 Mon Sep 17 00:00:00 2001 From: e2hang <2099307493@qq.com> Date: Wed, 6 Aug 2025 16:29:41 +0800 Subject: [PATCH] define is essential --- LinearList/BinaryTree/linkedBinaryTree.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LinearList/BinaryTree/linkedBinaryTree.h b/LinearList/BinaryTree/linkedBinaryTree.h index ae24703..b6a919c 100644 --- a/LinearList/BinaryTree/linkedBinaryTree.h +++ b/LinearList/BinaryTree/linkedBinaryTree.h @@ -108,6 +108,8 @@ public: } }; +//Remember to initiate this Definition by denifying it outside the class but inside the .h file + template void (*linkedBinaryTree::visit)(binaryTreeNode*) = nullptr;