|
Boost Users : |
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2006-08-23 13:04:13
On 8/23/06, Phillip Hellewell <sshock_at_[hidden]> wrote:
>
> [snipped]
>
> Now after going to ALL that work just so you can use for_each, don't you
> just want to forget it and use iterators?
>
> for( map<string, int>::const_iterator it = m.begin(); it != m.end(); ++it
> )
> m2.insert(*it);
And after ALL this, you could write just:
std::map<std::string, int> m2(m1);
What am I missing? maps are copy-constructible!
>
> Phillip Hellewell
-- Felipe Magno de Almeida
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net