
28 Mar
2007
28 Mar
'07
11:28 p.m.
Scott Meyers wrote:
Ovanes Markarian wrote:
Just as addition to the issue: here you deal with a set. And in the Extensible Associative Sequence the position is ignored (at least according to the docs). So you can skip the usage of end<Constraints>.
Right, but as I noted in my original post, (1) using the two-argument form for insert does not change the observed behavior, and (2) I'd prefer to use the form taking a position, anyway, in case I decide to start using a container like mpl:: vector.
At this point, however, I'd be happy to use any form that actually results in a new sequence that has one more element than the original sequence.
mpl::vector and mpl::push_back (instead of insert) seem to work.
Scott
Regards, dave