Add #include <new> to mfbt/Vector.h so that placement-new actually works when that header hasn't been bootlegged. No bug, r=too-long-spent-debugging-this
authorJeff Walden <jwalden@mit.edu>
Thu, 25 Jul 2013 20:01:42 -0700
changeset 140277 b0b60f193dec254045cff510f5ad200a64471448
parent 140276 c77439f57dfc0207490e9b450466dc7c421362df
child 140278 4a126050ecdbdfc3a7b4432783db8ac8373af002
push id1954
push useremorley@mozilla.com
push dateMon, 29 Jul 2013 14:43:15 +0000
treeherderfx-team@b8c7acba4b40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstoo-long-spent-debugging-this
milestone25.0a1
Add #include <new> to mfbt/Vector.h so that placement-new actually works when that header hasn't been bootlegged. No bug, r=too-long-spent-debugging-this
mfbt/Vector.h
--- a/mfbt/Vector.h
+++ b/mfbt/Vector.h
@@ -16,16 +16,18 @@
 #include "mozilla/MemoryReporting.h"
 #include "mozilla/Move.h"
 #include "mozilla/NullPtr.h"
 #include "mozilla/ReentrancyGuard.h"
 #include "mozilla/TemplateLib.h"
 #include "mozilla/TypeTraits.h"
 #include "mozilla/Util.h"
 
+#include <new> // for placement new
+
 /* Silence dire "bugs in previous versions of MSVC have been fixed" warnings */
 #ifdef _MSC_VER
 #pragma warning(push)
 #pragma warning(disable:4345)
 #endif
 
 namespace mozilla {