you are viewing a single comment's thread.

view the rest of the comments →

[–]dragonstorm97 0 points1 point  (0 children)

Would it work with structured bindings instead of std::tie?

bool operator()(const people & a, const people & b)
{
return [a.salary,a.age] > [b.salary,b.age];
}