Add #include <new> to folly/Malloc.h.
authorTudor Bosman <tudorb@fb.com>
Tue, 5 Jun 2012 07:04:29 +0000 (00:04 -0700)
committerTudor Bosman <tudorb@fb.com>
Tue, 5 Jun 2012 22:12:31 +0000 (15:12 -0700)
Test Plan: folly tests

Reviewed By: philipp@fb.com, andrei.alexandrescu@fb.com

FB internal diff: D486884D487376

folly/Malloc.h

index 946060abb2a18d63eca842c92c8b68e53d2036e4..7aadfc8fc9558d38cf56eff76d9dd1e44f4a52cc 100644 (file)
@@ -32,6 +32,9 @@ namespace folly {
   using std::jemallocMinInPlaceExpandable;
   using std::usingJEMalloc;
   using std::smartRealloc;
+  using std::checkedMalloc;
+  using std::checkedCalloc;
+  using std::checkedRealloc;
 }
 
 #else // !defined(_GLIBCXX_USE_FB) || defined(_LIBSTDCXX_FBSTRING)
@@ -57,6 +60,8 @@ namespace folly {
 #include <cstdlib>
 #include <cstring>
 
+#include <new>
+
 /**
  * Declare rallocm() and malloc_usable_size() as weak symbols.  It
  * will be provided by jemalloc if we are using jemalloc, or it will