[Aptitude-svn-commit] r3856 - in branches/aptitude-0.3/aptitude: .
src/generic/problemresolver
Daniel Burrows
dburrows at costa.debian.org
Tue Aug 16 00:29:19 UTC 2005
Author: dburrows
Date: Tue Aug 16 00:29:16 2005
New Revision: 3856
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/generic/problemresolver/solution.h
Log:
Suppress the autogenerated operator< for solutions.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Tue Aug 16 00:29:16 2005
@@ -1,5 +1,11 @@
2005-08-15 Daniel Burrows <dburrows at debian.org>
+ * src/generic/problemresolver/solution.h:
+
+ Keep the compiler from automatically generating an operator< for
+ solutions (which fooled me on at least one occasion into using
+ solutions as if they had a meaningful operator<).
+
* tests/test_resolver.cc:
Fix several outright crashes in the solution test.
Modified: branches/aptitude-0.3/aptitude/src/generic/problemresolver/solution.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/problemresolver/solution.h (original)
+++ branches/aptitude-0.3/aptitude/src/generic/problemresolver/solution.h Tue Aug 16 00:29:16 2005
@@ -81,6 +81,9 @@
};
private:
+ /** Hide this, it's meaningless. */
+ bool operator<(const generic_solution &other) const;
+
class solution_rep
{
/** The actions performed by this solution.
More information about the Aptitude-svn-commit
mailing list