Saturday, 15 September 2012

c++ - Eclipse CDT: Syntax error when using ref-qualifiers -



c++ - Eclipse CDT: Syntax error when using ref-qualifiers -

eclipse (4.3.2.v20140221-1852) c/c++ development tools sdk 8.3.0.201402142303 throws sytax error on next code:

template<typename data, std::size_t n_size, std::size_t m_size> class matrix { typedef info value_type; typedef data* pointer_type; typedef matrixreference<data, n_size, m_size> matrix_reference_type; typedef matrixreference<data, n_size, 1> column_reference_type; typedef matrixreference<data, 1, m_size> row_reference_type; typedef data& reference_type; template<typename data_o> matrix<typename pluseq<value_type, data_o>::type, n_size, m_size>& operator +=(const matrix<data_o, n_size, m_size>&) &; // syntax error ^ here }

is there way can avoid error/enable ref-qualifiers (because automatically turns off autocompletition when define function in file)?

anotations:

the class pluseq defined , well-formed, has typedef type, etc... it may eclipse cdt indexer, there work around, anyway? ref-qualifiers used quite frequently

c++ eclipse eclipse-cdt ref-qualifier

No comments:

Post a Comment