[计算机科学经

complex z10 30 t double c templates

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: _List_itera tor<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> >,_STL ::_Nonconst_traits<_STL::basic_string<char,_STL::char_traits<char>,_STL::allocat or<char> > > >, _STL::_List_iterator<_STL::basic_string<char,_STL::char_traits<c har>,_STL::allocator<char> >,_STL::_Nonconst_traits<_STL::basic_string<char,_STL ::char_traits<char>,_STL::allocator<char> > > >, _STL::binder2nd<_STL::greater<i nt> >)' testprog.cpp:18: instantiated from here /local/include/stl/_algo.h:78: no match for call to `(_STL::binder2nd<_STL::grea ter<int> >) (_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<cha r> > &)' /local/include/stl/_function.h:261: candidates are: bool _STL::binder2nd<_STL::g reater<int> >::operator ()(const int &) const 這樣的錯誤訊息不像是診斷資訊,倒像㆝書㆒般。這會嚇倒 template 初級用戶。然而,如果你 有㆒些實踐經驗的話,這類錯誤訊息倒也不是...
View Full Document

Ask a homework question - tutors are online