mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 14:34:44 +02:00
Use custom placement to avoid warning/errors when using -fno-exceptions.
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/core/no_exceptions_support.hpp>
|
#include <boost/core/no_exceptions_support.hpp>
|
||||||
|
#include <boost/move/detail/placement_new.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace intrusive {
|
namespace intrusive {
|
||||||
@@ -55,7 +56,7 @@ class array_initializer
|
|||||||
std::size_t i = 0;
|
std::size_t i = 0;
|
||||||
BOOST_TRY{
|
BOOST_TRY{
|
||||||
for(; i != N; ++i){
|
for(; i != N; ++i){
|
||||||
new(init_buf)T(init);
|
::new(init_buf, boost_move_new_t()) T(init);
|
||||||
init_buf += sizeof(T);
|
init_buf += sizeof(T);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user