Le 02/08/2016 à 21:33, Richard Heck a écrit :
Is there anything we can do about all the warnings like this?
./../../3rdparty/boost/boost/function/function_base.hpp:308:13: warning:
placement new constructing an object of type
‘boost::detail::function::functor_manager_common<std::_Bind<std::_Mem_fn<void
(lyx::support::{anonymous}::Murder::*)()>(lyx::support::{anonymous}::Murder*)>
::functor_type {aka std::_Bind<std::_Mem_fn<void
(lyx::support::{anonymous}::Murder::*)()>(lyx::support::{anonymous}::Murder*)>}’
and size ‘24’ in a region of type ‘char’ and size ‘1’ [-Wplacement-new=]
new (reinterpret_cast<void*>(&out_buffer.data))
functor_type(*in_functor);
I cannot reproduce. Which compiler do you use? Does the warning go away
with the remaining of my patch in the message nlbl32$hki$2...@ger.gmane.org
which is supposed to remove boost::function entirely? (I would leave a
link to the message on the gmane website but it seems to be down for a
while.)