Use custom placement to avoid warning/errors when using -fno-exceptions.

This commit is contained in:
Ion Gaztañaga
2020-10-22 01:11:05 +02:00
parent db19c478a7
commit cb3752dbb1

View File

@@ -23,6 +23,7 @@
#include <boost/config.hpp>
#include <boost/core/no_exceptions_support.hpp>
#include <boost/move/detail/placement_new.hpp>
namespace boost {
namespace intrusive {
@@ -55,7 +56,7 @@ class array_initializer
std::size_t i = 0;
BOOST_TRY{
for(; i != N; ++i){
new(init_buf)T(init);
::new(init_buf, boost_move_new_t()) T(init);
init_buf += sizeof(T);
}
}