Boost logo

Boost :

Subject: Re: [boost] [modularization] mpl -> utility dependency
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2014-06-08 13:56:03


On Sunday 08 June 2014 19:51:12 Vicente J. Botet Escriba wrote:
> The dependency mpl -> utility
>
> |<boost/utility/value_init.hpp>|
>
> from |<boost/mpl/for_each.hpp>|||
>
> |is there just for this line
>
> // dwa 2002/9/10 -- make sure not to invoke undefined behavior
> // when we pass arg.
> value_initialized<arg> x;
>
> Do we really need to use this value_initialized class to ensure
> initialization with current compilers?

Surprisingly, even some fairly recent compilers don't implement value
initialization properly. See comments in value_init.hpp and relevant macros in
Boost.Config.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk