You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Greetings, these are the errors I get (I am unfortunately not competent with <Template>-based programming...). Hope you can fix this "non-template ‘index’ used as template" error.
Cheers,
Filippo
|| cd /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/build/bin && /usr/lib/ccache/c++ -I/home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/. -I/home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/D:/Development/boost/boost_1_49_0 -o CMakeFiles/isodist.dir/PeakList.cpp.o -c /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.cpp
PeakList.h|121 col 50| error: non-template ‘index’ used as template
|| void print(const typename MultiIndexContainer::index::type& i)
|| ^~~~~
PeakList.h|121 col 50| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|138 col 33| error: non-template ‘index’ used as template
|| typename MultiIndexContainer::index::type& getPeakListByType()
|| ^~~~~
PeakList.h|138 col 33| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|149 col 31| error: expected unqualified-id before ‘;’ token
|| MultiIndexContainer _peakset;
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘void brain::PeakList<PeakType, MultiIndexContainer>::addPeak(boost::shared_ptr)’:
PeakList.h|68 col 4| error: ‘_peakset’ was not declared in this scope
|| _peakset.insert(pk);
|| ^~~~~~~~
PeakList.h|68 col 4| note: suggested alternative: ‘peak_mz’
|| _peakset.insert(pk);
|| ^~~~~~~~
|| peak_mz
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘size_t brain::PeakList<PeakType, MultiIndexContainer>::getSize() const’:
PeakList.h|72 col 11| error: ‘_peakset’ was not declared in this scope
|| return _peakset.size();
|| ^~~~~~~~
PeakList.h|72 col 11| note: suggested alternative: ‘peak_mz’
|| return _peakset.size();
|| ^~~~~~~~
|| peak_mz
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘boost::shared_ptr brain::PeakList<PeakType, MultiIndexContainer>::getMonoisotopicPeak()’:
PeakList.h|83 col 13| error: ‘_peakset’ was not declared in this scope
|| return *(_peakset.get<peak_mz>().begin());
|| ^~~~~~~~
PeakList.h|83 col 13| note: suggested alternative: ‘peak_mz’
|| return *(_peakset.get<peak_mz>().begin());
|| ^~~~~~~~
|| peak_mz
PeakList.h|83 col 33| error: expected primary-expression before ‘>’ token
|| return *(_peakset.get<peak_mz>().begin());
|| ^
PeakList.h|83 col 35| error: expected primary-expression before ‘)’ token
|| return *(_peakset.get<peak_mz>().begin());
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘boost::shared_ptr brain::PeakList<PeakType, MultiIndexContainer>::getPeakByShift(const int&)’:
PeakList.h|90 col 33| error: non-template ‘index’ used as template
|| typedef MultiIndexContainer::index::type peakset_by_type;
|| ^~~~~
PeakList.h|90 col 33| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|90 col 12| error: need ‘typename’ before ‘MultiIndexContainer::index’ because ‘MultiIndexContainer’ is a dependent scope
|| typedef MultiIndexContainer::index::type peakset_by_type;
|| ^~~~~~~~~~~~~~~~~~~
PeakList.h|91 col 33| error: non-template ‘index’ used as template
|| typedef MultiIndexContainer::index<peak_mz>::type peakset_by_mz;
|| ^~~~~
PeakList.h|91 col 33| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|91 col 12| error: need ‘typename’ before ‘MultiIndexContainer::index’ because ‘MultiIndexContainer’ is a dependent scope
|| typedef MultiIndexContainer::index<peak_mz>::type peakset_by_mz;
|| ^~~~~~~~~~~~~~~~~~~
PeakList.h|94 col 4| error: ‘peakset_by_type’ was not declared in this scope
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~~~~~~~~
PeakList.h|94 col 21| error: ‘type_index’ was not declared in this scope
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~~~
PeakList.h|94 col 21| note: suggested alternative: ‘typename’
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~~~
|| typename
PeakList.h|94 col 34| error: ‘_peakset’ was not declared in this scope
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~
PeakList.h|94 col 34| note: suggested alternative: ‘peak_mz’
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~
|| peak_mz
PeakList.h|94 col 59| error: expected primary-expression before ‘>’ token
|| peakset_by_type& type_index = _peakset.get();
|| ^
PeakList.h|94 col 61| error: expected primary-expression before ‘)’ token
|| peakset_by_type& type_index = _peakset.get();
|| ^
PeakList.h|95 col 4| error: ‘peakset_by_mz’ was not declared in this scope
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^~~~~~~~~~~~~
PeakList.h|95 col 4| note: suggested alternative: ‘peak_mz’
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^~~~~~~~~~~~~
|| peak_mz
PeakList.h|95 col 19| error: ‘mz_index’ was not declared in this scope
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^~~~~~~~
PeakList.h|95 col 50| error: expected primary-expression before ‘>’ token
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^
PeakList.h|95 col 52| error: expected primary-expression before ‘)’ token
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^
PeakList.h|96 col 4| error: ‘peakset_by_type’ is not a class, namespace, or enumeration
|| peakset_by_type::iterator it1 = type_index.begin();
|| ^~~~~~~~~~~~~~~
PeakList.h|100 col 13| error: ‘it1’ was not declared in this scope
|| return *it1;
|| ^~~
PeakList.h|103 col 5| error: ‘peakset_by_mz’ is not a class, namespace, or enumeration
|| peakset_by_mz::iterator it2 = _peakset.project<peak_mz>(it1);
|| ^~~~~~~~~~~~~
PeakList.h|104 col 39| error: ‘it2’ was not declared in this scope
|| int t = shift > 0 ? std::distance(it2, mz_index.end())-1 : std::distance(mz_index.begin(), it2);
|| ^~~
PeakList.h|107 col 20| error: ‘make_shared’ is not a member of ‘boost’
|| return boost::make_shared();
|| ^~~~~~~~~~~
PeakList.h|107 col 20| note: suggested alternative: ‘make_signed’
|| return boost::make_shared();
|| ^~~~~~~~~~~
|| make_signed
PeakList.h|107 col 40| error: expected primary-expression before ‘>’ token
|| return boost::make_shared();
|| ^
PeakList.h|107 col 42| error: expected primary-expression before ‘)’ token
|| return boost::make_shared();
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘void brain::PeakList<PeakType, MultiIndexContainer>::print(typename MultiIndexContainer::index)’:
PeakList.h|123 col 14| error: ‘i’ was not declared in this scope
|| std::copy(i.begin(),i.end(),std::ostream_iterator<boost::shared_ptr >(std::cout));
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘void brain::PeakList<PeakType, MultiIndexContainer>::printPeakList(std::ostream&)’:
PeakList.h|131 col 31| error: non-template ‘index’ used as template
|| const MultiIndexContainer::index::type& i = _peakset.get();
|| ^~~~~
PeakList.h|131 col 31| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|131 col 10| error: need ‘typename’ before ‘MultiIndexContainer::index’ because ‘MultiIndexContainer’ is a dependent scope
|| const MultiIndexContainer::index::type& i = _peakset.get();
|| ^~~~~~~~~~~~~~~~~~~
PeakList.h|134 col 14| error: ‘i’ was not declared in this scope
|| std::copy(i.begin(),i.end(),std::ostream_iterator<boost::shared_ptr >(os));
||
The text was updated successfully, but these errors were encountered:
Greetings, these are the errors I get (I am unfortunately not competent with <Template>-based programming...). Hope you can fix this "non-template ‘index’ used as template" error.
Cheers,
Filippo
|| cd /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/build/bin && /usr/lib/ccache/c++ -I/home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/. -I/home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/D:/Development/boost/boost_1_49_0 -o CMakeFiles/isodist.dir/PeakList.cpp.o -c /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.cpp
PeakList.h|121 col 50| error: non-template ‘index’ used as template
|| void print(const typename MultiIndexContainer::index::type& i)
|| ^~~~~
PeakList.h|121 col 50| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|138 col 33| error: non-template ‘index’ used as template
|| typename MultiIndexContainer::index::type& getPeakListByType()
|| ^~~~~
PeakList.h|138 col 33| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|149 col 31| error: expected unqualified-id before ‘;’ token
|| MultiIndexContainer _peakset;
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘void brain::PeakList<PeakType, MultiIndexContainer>::addPeak(boost::shared_ptr)’:
PeakList.h|68 col 4| error: ‘_peakset’ was not declared in this scope
|| _peakset.insert(pk);
|| ^~~~~~~~
PeakList.h|68 col 4| note: suggested alternative: ‘peak_mz’
|| _peakset.insert(pk);
|| ^~~~~~~~
|| peak_mz
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘size_t brain::PeakList<PeakType, MultiIndexContainer>::getSize() const’:
PeakList.h|72 col 11| error: ‘_peakset’ was not declared in this scope
|| return _peakset.size();
|| ^~~~~~~~
PeakList.h|72 col 11| note: suggested alternative: ‘peak_mz’
|| return _peakset.size();
|| ^~~~~~~~
|| peak_mz
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘boost::shared_ptr brain::PeakList<PeakType, MultiIndexContainer>::getMonoisotopicPeak()’:
PeakList.h|83 col 13| error: ‘_peakset’ was not declared in this scope
|| return *(_peakset.get<peak_mz>().begin());
|| ^~~~~~~~
PeakList.h|83 col 13| note: suggested alternative: ‘peak_mz’
|| return *(_peakset.get<peak_mz>().begin());
|| ^~~~~~~~
|| peak_mz
PeakList.h|83 col 33| error: expected primary-expression before ‘>’ token
|| return *(_peakset.get<peak_mz>().begin());
|| ^
PeakList.h|83 col 35| error: expected primary-expression before ‘)’ token
|| return *(_peakset.get<peak_mz>().begin());
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘boost::shared_ptr brain::PeakList<PeakType, MultiIndexContainer>::getPeakByShift(const int&)’:
PeakList.h|90 col 33| error: non-template ‘index’ used as template
|| typedef MultiIndexContainer::index::type peakset_by_type;
|| ^~~~~
PeakList.h|90 col 33| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|90 col 12| error: need ‘typename’ before ‘MultiIndexContainer::index’ because ‘MultiIndexContainer’ is a dependent scope
|| typedef MultiIndexContainer::index::type peakset_by_type;
|| ^~~~~~~~~~~~~~~~~~~
PeakList.h|91 col 33| error: non-template ‘index’ used as template
|| typedef MultiIndexContainer::index<peak_mz>::type peakset_by_mz;
|| ^~~~~
PeakList.h|91 col 33| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|91 col 12| error: need ‘typename’ before ‘MultiIndexContainer::index’ because ‘MultiIndexContainer’ is a dependent scope
|| typedef MultiIndexContainer::index<peak_mz>::type peakset_by_mz;
|| ^~~~~~~~~~~~~~~~~~~
PeakList.h|94 col 4| error: ‘peakset_by_type’ was not declared in this scope
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~~~~~~~~
PeakList.h|94 col 21| error: ‘type_index’ was not declared in this scope
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~~~
PeakList.h|94 col 21| note: suggested alternative: ‘typename’
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~~~
|| typename
PeakList.h|94 col 34| error: ‘_peakset’ was not declared in this scope
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~
PeakList.h|94 col 34| note: suggested alternative: ‘peak_mz’
|| peakset_by_type& type_index = _peakset.get();
|| ^~~~~~~~
|| peak_mz
PeakList.h|94 col 59| error: expected primary-expression before ‘>’ token
|| peakset_by_type& type_index = _peakset.get();
|| ^
PeakList.h|94 col 61| error: expected primary-expression before ‘)’ token
|| peakset_by_type& type_index = _peakset.get();
|| ^
PeakList.h|95 col 4| error: ‘peakset_by_mz’ was not declared in this scope
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^~~~~~~~~~~~~
PeakList.h|95 col 4| note: suggested alternative: ‘peak_mz’
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^~~~~~~~~~~~~
|| peak_mz
PeakList.h|95 col 19| error: ‘mz_index’ was not declared in this scope
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^~~~~~~~
PeakList.h|95 col 50| error: expected primary-expression before ‘>’ token
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^
PeakList.h|95 col 52| error: expected primary-expression before ‘)’ token
|| peakset_by_mz& mz_index = _peakset.get<peak_mz>();
|| ^
PeakList.h|96 col 4| error: ‘peakset_by_type’ is not a class, namespace, or enumeration
|| peakset_by_type::iterator it1 = type_index.begin();
|| ^~~~~~~~~~~~~~~
PeakList.h|100 col 13| error: ‘it1’ was not declared in this scope
|| return *it1;
|| ^~~
PeakList.h|103 col 5| error: ‘peakset_by_mz’ is not a class, namespace, or enumeration
|| peakset_by_mz::iterator it2 = _peakset.project<peak_mz>(it1);
|| ^~~~~~~~~~~~~
PeakList.h|104 col 39| error: ‘it2’ was not declared in this scope
|| int t = shift > 0 ? std::distance(it2, mz_index.end())-1 : std::distance(mz_index.begin(), it2);
|| ^~~
PeakList.h|107 col 20| error: ‘make_shared’ is not a member of ‘boost’
|| return boost::make_shared();
|| ^~~~~~~~~~~
PeakList.h|107 col 20| note: suggested alternative: ‘make_signed’
|| return boost::make_shared();
|| ^~~~~~~~~~~
|| make_signed
PeakList.h|107 col 40| error: expected primary-expression before ‘>’ token
|| return boost::make_shared();
|| ^
PeakList.h|107 col 42| error: expected primary-expression before ‘)’ token
|| return boost::make_shared();
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘void brain::PeakList<PeakType, MultiIndexContainer>::print(typename MultiIndexContainer::index)’:
PeakList.h|123 col 14| error: ‘i’ was not declared in this scope
|| std::copy(i.begin(),i.end(),std::ostream_iterator<boost::shared_ptr >(std::cout));
|| ^
|| /home/rusconi/devel/isotopic-cluster-stuff/brain-isotopic-distribution/src/PeakList.h: In member function ‘void brain::PeakList<PeakType, MultiIndexContainer>::printPeakList(std::ostream&)’:
PeakList.h|131 col 31| error: non-template ‘index’ used as template
|| const MultiIndexContainer::index::type& i = _peakset.get();
|| ^~~~~
PeakList.h|131 col 31| note: use ‘MultiIndexContainer::template index’ to indicate that it is a template
PeakList.h|131 col 10| error: need ‘typename’ before ‘MultiIndexContainer::index’ because ‘MultiIndexContainer’ is a dependent scope
|| const MultiIndexContainer::index::type& i = _peakset.get();
|| ^~~~~~~~~~~~~~~~~~~
PeakList.h|134 col 14| error: ‘i’ was not declared in this scope
|| std::copy(i.begin(),i.end(),std::ostream_iterator<boost::shared_ptr >(os));
||
The text was updated successfully, but these errors were encountered: