Boost logo

Boost :

Subject: Re: [boost] [function] Placement new warnings from gcc 6
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-04-01 12:20:54


AMDG

On 04/01/2016 02:11 AM, Andrey Semashev wrote:
>
> In my tests on gcc 6 I'm seeing these warnings which stem from
> Boost.Function:
>
> ../boost/function/function_template.hpp:572:11: warning: placement new
> constructing an object of type
> '<snip>'
> and size '8' in a region of type 'char' and size '1' [-Wplacement-new=]
>
> I'm not familiar with boost::function internals, but the warning looks
> serious enough to do something about it. I.e. if it's actually benign,
> it would be nice to silence it to avoid causing panic.
>

  The 'char' in question is the first element
of an array of sufficient size.

In Christ,
Steven Watanabe


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