c++ - Template class without a name -
I've got a class that uses a template, but I can not get rid of this error:
My code is as follows: Preprocessor line 8: 1: error: template class without a name
#ifndef bst # Define bst #include & lt; Utility & gt; Template & lt; typename DataType & gt; Class BST {...}; An error occurs on
class BST I'm pretty sure that the datatype is a name, what templates do i miss?
# < / P> ; Utility & gt; Template & lt; typename DataType & gt; Class BST {...};
Comments
Post a Comment