I declared a template class threadBinaryTree and a function
void threadBinaryTree<T>::inThread
(threadBinaryTreeNode<T>*root,threadBinaryTreeNode<T>*& pre)
but complies error:
no matching function for call to ‘threadBinaryTree<char>::inThread
(threadBinaryTreeNode<char>*, NULL)’|
pre need to be initialized as NULL, how should I do?
nullptr?NULLisn't c++ as far as I know.NULLis in C++ because it is in the C stdlib.nullptris preferred though because of better overload resolution behavior.