and get: ThreadSort/main.cpp:40:0 /Users/Maxim/Documents/Projects/SW/C++/ThreadSort/main.cpp:40: error: no matching function for call to 'bind(<unresolved overloaded function type>, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >)'
template< typename Iter >
struct SortOp {
SortOp( Iter first, Iter last ) : first( first ), last( last ) {}
voidoperator()() const { std::sort( first, last ); }
private:
Iter first;
Iter last;
};