[Bf-blender-cvs] [594438ef0d6] master: Allocator: add missing include

Jacques Lucke noreply at git.blender.org
Mon Dec 27 15:42:32 CET 2021


Commit: 594438ef0d6135a5bbf9101292db9f2d3aca9312
Author: Jacques Lucke
Date:   Mon Dec 27 15:41:56 2021 +0100
Branches: master
https://developer.blender.org/rB594438ef0d6135a5bbf9101292db9f2d3aca9312

Allocator: add missing include

The placement-new operator requires `#include <new>`.
It is used in `MEM_new`.

===================================================================

M	intern/guardedalloc/MEM_guardedalloc.h

===================================================================

diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index 043f7055ab1..8a20323dcfc 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -260,6 +260,7 @@ void MEM_use_guarded_allocator(void);
 
 #ifdef __cplusplus
 
+#  include <new>
 #  include <type_traits>
 #  include <utility>



More information about the Bf-blender-cvs mailing list