diff options
Diffstat (limited to 'src/history.cc')
-rw-r--r-- | src/history.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/history.cc b/src/history.cc index dbcdc823..d5eb727c 100644 --- a/src/history.cc +++ b/src/history.cc @@ -39,7 +39,11 @@ #include "history.h" template <typename T> -struct f_max : public std::binary_function<T, T, bool> { +struct f_max +#if __cplusplus < 201103L +: public std::binary_function<T, T, bool> +#endif +{ T operator()(const T& x, const T& y) const { return std::max(x, y); } |