템플릿 에러질문합니다
#ifndef BSTREE_H
#define BSTREE_H
//---------------------------------------------------------------------------
#ifdef _MSC_VER
#pragma warning( disable : 4290 ) // suppress warning: C++ Exception Specification ignored
#endif
#include // std::string
template
class BSTree
{
public:
BSTree(void);
};
#include "BSTree.cpp"
#endif
여기까지가 헤더이고요
template
BSTree::BSTree(void)
{
}
여기는 cpp파일인데
error C2143: syntax error : missing ';' before '<'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2988: unrecognizable template declaration/definition
error C2059: syntax error : '<'
헤어파일이랑 cpp파일은 무조건 나눠야 되고요 헤더도 건들수가 없는데 전에는 이렇게 해서 에러 안낫던거 같은데
지금은 왜 나는지 모르겟네요. 무엇이 문제인가요??
소스가 제대로 안 올라간 듯 합니다.
< c o d e > 태그로 감싸주세요~
--
댓글 달기