mirror of https://github.com/CGAL/cgal
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:
parent
659dbffa13
commit
67a52efc1f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue