I'm trying to write a simple template for nodes that can be used to make a binary tree. There's a compiler error, the problem is caused by the visit and the traverse function I guess. The search didn't help. The results only answered questions to problems using functions inside classes, but I want to use it outside.
binarytree.hpp:33:12: error: variable or field ‘visit’ declared void
binarytree.hpp:33:16: error: missing template arguments before ‘*’ token
binarytree.hpp:33:18: error: ‘Node’ was not declared in this scope
binarytree.hpp:37:24: error: variable or field ‘traverse_preorder’ declared void
binarytree.hpp:37:28: error: missing template arguments before ‘*’ token
binarytree.hpp:37:30: error: ‘Node’ was not declared in this scope