mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-02 22:14:35 +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/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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user