folly/experimental/hazptr: fix gcc 5 build
[folly.git] / folly / experimental / hazptr / memory_resource.h
index d24abf6975398aab088046c34d0802003c42b547..cf53c806527fc4ea6a61da7526a6e10cef781a10 100644 (file)
  */
 #pragma once
 
-namespace folly {
-namespace hazptr {
-
 ////////////////////////////////////////////////////////////////////////////////
 /// Disclaimer: This is intended only as a partial stand-in for
 /// std::pmr::memory_resource (C++17) as needed for developing a
 /// hazptr prototype.
 ////////////////////////////////////////////////////////////////////////////////
+#include <cstddef>
 #include <memory>
 
+namespace folly {
+namespace hazptr {
+
 class memory_resource {
  public:
   virtual ~memory_resource() = default;