diff options
author | Daniel Burrows <dburrows@debian.org> | 2009-06-04 07:08:01 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2009-06-04 07:08:01 -0700 |
commit | 87d1c7883a95f19d1693791191e9bd840991296b (patch) | |
tree | 097dcc4c05bc45b0e18f213f22792525a14ebcb8 /src/generic/problemresolver/promotion_set.h | |
parent | 13bb1285ab8968671d0528ce285352a40f0c1c14 (diff) | |
download | aptitude-87d1c7883a95f19d1693791191e9bd840991296b.tar.gz |
Fix operator<< for promotions.
Diffstat (limited to 'src/generic/problemresolver/promotion_set.h')
-rw-r--r-- | src/generic/problemresolver/promotion_set.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/generic/problemresolver/promotion_set.h b/src/generic/problemresolver/promotion_set.h index 60af16eb..308f600e 100644 --- a/src/generic/problemresolver/promotion_set.h +++ b/src/generic/problemresolver/promotion_set.h @@ -123,13 +123,15 @@ public: template<typename PackageUniverse> std::ostream &operator<<(std::ostream &out, const generic_promotion<PackageUniverse> &p) { - return out << "(T" << p.get_tier() << ": " << p.get_choices(); + out << "(T" << p.get_tier() << ": " << p.get_choices(); if(p.get_valid_condition().valid()) // Output p.get_valid_condition() if it isn't null. out << "; V:" << p.get_valid_condition(); out << ")"; + + return out; } /** \brief Represents a set of "promotions": mappings from sets of |