define is essential

This commit is contained in:
e2hang
2025-08-06 16:29:41 +08:00
parent 5bdb044421
commit b4c8ed60a9

View File

@@ -108,6 +108,8 @@ public:
}
};
//Remember to initiate this Definition by denifying it outside the class but inside the .h file
template<typename T>
void (*linkedBinaryTree<T>::visit)(binaryTreeNode<T>*) = nullptr;