Add PackageSpec != operator

This commit is contained in:
Alexander Karatarakis 2017-04-12 22:36:44 -07:00
parent 8972bd3067
commit b578320d9c
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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);
}
}