Add PackageSpec != operator
MODIFY
include/PackageSpec.h
include/PackageSpec.h
@@ -25,6 +25,7 @@ namespace vcpkg
};
bool operator==(const PackageSpec& left, const PackageSpec& right);
+ bool operator!=(const PackageSpec& left, const PackageSpec& right);
} //namespace vcpkg
namespace std

MODIFY
src/PackageSpec.cpp
src/PackageSpec.cpp
@@ -64,4 +64,9 @@ namespace vcpkg
{
return left.name() == right.name() && left.triplet() == right.triplet();
}
+
+ bool operator!=(const PackageSpec& left, const PackageSpec& right)
+ {
+ return !(left == right);
+ }
}

Add PackageSpec != operator