mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Fix -Wcast-align warning
This commit is contained in:
@@ -115,7 +115,7 @@ class heap_allocator_v1
|
||||
{
|
||||
(void)hint;
|
||||
char *raw_mem = ::new char[sizeof(value_type)*count];
|
||||
return boost::intrusive::pointer_traits<pointer>::pointer_to(reinterpret_cast<value_type &>(*raw_mem));
|
||||
return boost::intrusive::pointer_traits<pointer>::pointer_to(*reinterpret_cast<value_type *>((void*)raw_mem));
|
||||
}
|
||||
|
||||
//!Deallocates memory previously allocated. Never throws
|
||||
|
||||
Reference in New Issue
Block a user