I'm trying to use the transform algorithm (or any other part of the STL that would do the job) to change a sequence of ints. If the current element is more than 5, keep it. Else use 5.

This does not compile :

```
std::vector<int> vec;
vec.push_back(6);
vec.push_back(2);
vec.push_back(9);
vec.push_back(4);
vec.push_back(7);

std::transform(vec.begin(), vec.end(), vec.begin(), std::bind1st(std::max<int>(), 5));

```

I don't have access to C++11.