Skip to content

Commit 26af6fc

Browse files
committed
remove _Voidify_iter in allocator
1 parent e4de9c4 commit 26af6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jxy/memory.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class allocator
144144
_CXX17_DEPRECATE_OLD_ALLOCATOR_MEMBERS
145145
void construct(U* const Memory, TArgs&&... Args)
146146
{
147-
::new (std::_Voidify_iter(Memory)) U(std::forward<TArgs>(Args)...);
147+
::new (const_cast<void*>(static_cast<const volatile void*>(Memory))) U(std::forward<TArgs>(Args)...);
148148
}
149149

150150
template <class U>

0 commit comments

Comments
 (0)