diff options
Diffstat (limited to 'apt-pkg')
| -rw-r--r-- | apt-pkg/solver3.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h index 6e45d5f45..73ed26030 100644 --- a/apt-pkg/solver3.h +++ b/apt-pkg/solver3.h @@ -339,14 +339,9 @@ struct APT::Solver::Var return isVersion() ? Ver(cache).ParentPkg() : Pkg(cache); } // \brief Check if there is no reason. - constexpr bool empty() const - { - return value == 0; - } - constexpr bool operator==(Var const other) const - { - return value == other.value; - } + constexpr bool empty() const { return value == 0; } + constexpr bool operator!=(Var const other) const { return value != other.value; } + constexpr bool operator==(Var const other) const { return value == other.value; } std::string toString(pkgCache &cache) const { |
