Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users] [assign] std::vector initialisation by boost::assign::list_of
From: Andrey Torba (andreytorba_at_[hidden])
Date: 2010-03-17 15:30:17


On 17 March 2010 17:58, Ovanes Markarian <om_boost_at_[hidden]> wrote:
> vector<int> v(my_iterator(list_of(1)(2)), my_iterator());

I think that result of `list_of` will be destroyed after
`my_iterator(...)` call, so `my_iterator` will not be valid.

-- 
Regards, Andrey

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