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