|
Boost Users : |
From: Martin (adrianm_at_[hidden])
Date: 2005-05-11 00:13:30
> 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) {...}
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