Skip to content

Commit

Permalink
Update make_constructor.hpp
Browse files Browse the repository at this point in the history
Fix patch to use boost python details to build without C++11.
  • Loading branch information
vslashg authored Nov 13, 2023
1 parent 8edf516 commit 4160224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/python/make_constructor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ namespace detail
typedef objects::pointer_holder<Ptr,value_type> holder;
typedef objects::instance<holder> instance_t;

void* memory = holder::allocate(this->m_self, offsetof(instance_t, storage),
sizeof(holder), alignof(holder));
void* memory = holder::allocate(this->m_self, offsetof(instance_t, storage), sizeof(holder),
boost::python::detail::alignment_of<holder>::value);
try {
#if defined(BOOST_NO_CXX11_SMART_PTR)
(new (memory) holder(x))->install(this->m_self);
Expand Down

0 comments on commit 4160224

Please sign in to comment.