$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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