|
Boost Users : |
From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-05-11 00:27:48
Martin wrote:
>> map<int,int> m;
>> ...
>> FOREACH (map<int,int>::value_type i, m) {...} // compiles
>> map<int,int>::value_type i;
>> FOREACH (i, m) {...} // COMPILE ERROR
>
>
> Why not
>
> map<int,int>::value_type& i;
> FOREACH (i, m) {...}
Would it not have to be
FOREACH(map<int,int>::value_type& i, m)
{
}
?
Cheers
Russell
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