함수 정의 오류가 발생할C++ 연산자 GCC 오류 = 함수
const circularLinkedList<Tp>& operator=(const circularLinkedList<Tp>& otherList);
라인 에러 메시지 .... nodeType에 시작 (327)을 일렬로
template <class Tp>
nodeType<Tp>* circularLinkedList<Tp>&::operator=(const circularLinkedList<Tp>& otherList)
오류를 말한다 GCC의 컴파일러의 메시지는 다음과 같습니다
circularLinkedList.h:327: error: invalid declarator before â&â token
circularLinkedList.h:327: error: expected initializer before â&â token
나는이 방법 somewh을 정의 나가에 구문 오류의 일종을 만든 가정 오히려. 어떻게 고칠 것인가? 감사.
단순히이'&'이상한 인코딩 따옴표에서 토큰'A & A' 토큰인가? –
@ MrLister - 그렇게 생각합니다. 복사/붙여 넣기 문제 일 수 있습니다. –
& 이전 :: 연산자가 잘못 되었나요? – abresas