Subject: Re: [Boost-bugs] [Boost C++ Libraries] #816: duplicat initial members -> erase_key postcond. fail
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-01 13:43:41
#816: duplicat initial members -> erase_key postcond. fail
-------------------------------+--------------------------------------------
Reporter: cppljevans | Owner: agurtovoy
Type: Support Requests | Status: assigned
Milestone: | Component: mpl
Version: None | Severity: Problem
Resolution: None | Keywords:
-------------------------------+--------------------------------------------
Comment(by anonymous):
The previous comment referring to assoc_item was from:
[https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1642614&group_id=7586]
The recent assoc_by_insert.cpp attachment shows simpler solution which
folds over the set insert operation instead of the set s_item operation
in the superclass of set<T1,T2,...,Tn>
The reason it works is because the fold starts from the empty set, which
has no duplicates, and the insert operation preserves the no duplicate
invariant.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/816#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC