From 1fd9eeaeef194da21621a7741e8d7e10d5eabd8b Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Mon, 16 Apr 2007 16:26:57 +0000 Subject: [PATCH] Fix Quadruple's operator!=. --- STL_Extension/include/CGAL/utility.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/STL_Extension/include/CGAL/utility.h b/STL_Extension/include/CGAL/utility.h index 6a766e8300c..0fc00ef42e9 100644 --- a/STL_Extension/include/CGAL/utility.h +++ b/STL_Extension/include/CGAL/utility.h @@ -85,9 +85,7 @@ template inline bool operator!=(const Triple& x, const Triple& y) { - return ( (x.first != y.first) || - (x.second != y.second) || - (x.third != y.third) ); + return !(x == y); } template @@ -164,10 +162,7 @@ bool operator!=(const Quadruple& x, const Quadruple& y) { - return ( (x.first == y.first) && - (x.second == y.second) && - (x.third == y.third) && - (x.fourth == y.fourth) ); + return ! (x == y); } template