diff --git a/src/OpenFOAM/primitives/Pair/Pair.H b/src/OpenFOAM/primitives/Pair/Pair.H index a78397a358..73b99e5c15 100644 --- a/src/OpenFOAM/primitives/Pair/Pair.H +++ b/src/OpenFOAM/primitives/Pair/Pair.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -171,14 +171,14 @@ Pair reverse(const Pair& p) template bool operator==(const Pair& a, const Pair& b) { - return Pair::compare(a,b) != 0; + return (a.first() == b.first() && a.second() == b.second()); } template bool operator!=(const Pair& a, const Pair& b) { - return Pair::compare(a,b) == 0; + return !(a == b); }