Boost logo

Boost Users :

Subject: Re: [Boost-users] [assign] Default list_of() behavior
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2010-08-05 12:16:02


Ryan McConnehey skrev:
> None of the examples, for list_of, show the use of the default list_of
> constructor. When I tried to use list_of() for a vector I expected a
> blank vector without any elements. What I found was a vector that had
> one element of the vector type. This element had a default value. Is
> this the correct behavior?

Yes, the upcomming revision will fix this somehow without breaking
exisiting code.

-Thorsten


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