diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-11 16:36:01 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-11 16:37:09 +0300 |
commit | e44045745d51622513f5733686f78db65d160263 (patch) | |
tree | fbf2f58ccf6243e3b30bd06e31f4e349d7692439 /source/blender/blenlib/BLI_linear_allocator.hh | |
parent | e22098616c25c00786409fbf4e3229456f6b3807 (diff) |
BLI: don't pass const pointers to placement new operator
This resulted in compile errors.
Diffstat (limited to 'source/blender/blenlib/BLI_linear_allocator.hh')
-rw-r--r-- | source/blender/blenlib/BLI_linear_allocator.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_linear_allocator.hh b/source/blender/blenlib/BLI_linear_allocator.hh index f968f9f15ce..2a0dc939cb9 100644 --- a/source/blender/blenlib/BLI_linear_allocator.hh +++ b/source/blender/blenlib/BLI_linear_allocator.hh @@ -171,7 +171,7 @@ template<typename Allocator = GuardedAllocator> class LinearAllocator : NonCopya MutableSpan<T *> pointers = void_pointers.cast<T *>(); for (uint i : IndexRange(n)) { - new (pointers[i]) T(std::forward<Args>(args)...); + new ((void *)pointers[i]) T(std::forward<Args>(args)...); } return pointers; |