Boost logo

Boost Users :

Subject: Re: [Boost-users] using pairs with boost.foreach
From: joaquin_at_[hidden]
Date: 2009-10-22 06:35:01


Igor R escribió:
>> Is it possible to use an std::pair with boost.foreach?
>>
>
> typedef std::map<int, double> map_type;
> map_type my_map;
> //....
> BOOT_FOREACH(map_type::reference pair, my_map)
> {
> pair.first = 1;
>

How can this possibly work, being keys constant?

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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