Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test1.cpp: In function ‘int main()’:
- 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&)>)’
- test1.cpp:61:1: note: candidate is:
- 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)
- test1.cpp:15:5: note: template argument deduction/substitution failed:
- 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