Advertisement
Guest User

Untitled

a guest
Sep 13th, 2012
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. test1.cpp: In function ‘int main()’:
  2. test1.cpp:61:1: error: no matching function for call to ‘sort_by1(std::vector<main()::S>::iterator, std::vector<main()::S>::iterator, main()::<lambda(const main()::S&)>)’
  3. test1.cpp:61:1: note: candidate is:
  4. test1.cpp:15:5: note: template<class Tcriterion, class Titer, class Tcompare> void sort_by1(Titer, Titer, std::function<Tcriterion(const typename std::iterator_traits<_II>::value_type&)>, Tcompare)
  5. test1.cpp:15:5: note: template argument deduction/substitution failed:
  6. test1.cpp:61:1: note: ‘main()::<lambda(const main()::S&)>’ is not derived from ‘std::function<std::pair<int, double>(const typename std::iterator_traits<_II>::value_type&)>’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement