Boost logo

Boost Users :

Subject: Re: [Boost-users] [value_initialized] when T is const
From: Edward Diener (eldiener_at_[hidden])
Date: 2009-09-23 11:18:07


Niels Dekker - address until 2010-10-10 wrote:
> Edward Diener wrote:
>> As a quick 'heads up', if you add a constructor to
>> value_initialized<T>, make sure you also remember to add the default
>> constructor.
>
> Did you already take a look? value_initialized<T> has always had a
> user-defined default constructor.

My very stupid error in not realizing that value_initialized<T> had to
have a user-defined default constructor.

>
> Please check <boost/utility/value_init.hpp>
>
> It would be helpful if you could already implement the new feature in
> your local copy of "value_init.hpp", to see if it works. If so, you
> could add your implementation as a proposed resolution to the ticket,
> https://svn.boost.org/trac/boost/ticket/3472

I will code it up locally, test it out, and then add it to the ticket.


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