Less should derive from std::unary_function

otherwise the type name Less_than::argument_type is invalid
and causes compilation errors
This commit is contained in:
Jane Tournois 2016-01-19 15:22:08 +01:00
parent 659dbffa13
commit 67a52efc1f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace CGAL {
namespace internal {
template<typename T>
struct Less_than {
struct Less_than : public std::unary_function<T, bool> {
Less_than(const T& second) : second(second) {}
bool operator()(const T& first) const { return std::less<T>()(first, second); }
T second;