函數定義C++對操作者的gcc誤差=函數
const circularLinkedList<Tp>& operator=(const circularLinkedList<Tp>& otherList);
線導致錯誤,錯誤消息指線路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 ERE。我將如何去修復它?謝謝。
是一個'A&A'令牌只是一個'&'令牌奇怪的編碼報價? – 2012-03-17 18:53:29
@MrLister - 我認爲是。也許複製/粘貼問題。 – 2012-03-17 18:55:34
是不是&前::運營商錯了? – abresas 2012-03-17 18:57:08