Add missing header for std::max_align_t
authorJonathan Wakely <jwakely@redhat.com>
Wed, 25 Jul 2018 17:24:49 +0000 (18:24 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 25 Jul 2018 17:24:49 +0000 (18:24 +0100)
* include/experimental/memory_resource: Include <cstddef> header.

From-SVN: r262977

libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/memory_resource

index 2ac56cc748e21fca45afdc21f57f693e6aa2db60..d7a9dbb6ce3a1a70887b099965b7174ba09d947a 100644 (file)
@@ -1,5 +1,7 @@
 2018-07-25  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/experimental/memory_resource: Include <cstddef> header.
+
        * acinclude.m4 (glibcxx_SUBDIRS): Add src/c++17.
        * src/Makefile.am: Add comment.
        * src/c++17/Makefile.in: Regenerate.
index 7ce64457a115a36a63920e56b74a149252083a0e..61c9ce0a14adb281b4f3448c69ef1eaa585970d3 100644 (file)
@@ -32,7 +32,8 @@
 #include <memory>                      // align, uses_allocator, __uses_alloc
 #include <experimental/utility>                // pair, experimental::erased_type
 #include <atomic>                      // atomic
-#include <new>
+#include <new>                         // placement new
+#include <cstddef>                     // max_align_t
 #include <ext/new_allocator.h>
 #include <debug/assertions.h>