Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][lambda] crash in std::for_each
From: Igor R (boost.lists_at_[hidden])
Date: 2009-02-03 12:10:32


>
> The reason is that std::pairs can be converted to each other.
> If the type doesn't match exactly:
> 1) It will be implicitly converted to the correct type.
> 2) Then you get a reference to first.
> 3) Then the temporary created in step 1 is destroyed
> 4) Then you stream first (which has just been destroyed)
>

Thank you, now I see.



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