PR libstdc++/70966 fix lifetime bug for default resource
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 Jul 2018 13:03:11 +0000 (14:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 24 Jul 2018 13:03:11 +0000 (14:03 +0100)
commit0568ade6f8456715ee7ed8902f8e308b0ab3dbb5
tree5adafb6d766e178537c917eef0b05e531587a813
parentffb164c7df6931b92cf2ad2ef4bd102cec8e6be3
PR libstdc++/70966 fix lifetime bug for default resource

PR libstdc++/70966
* include/experimental/memory_resource (__get_default_resource): Use
placement new to create an object with dynamic storage duration.

From-SVN: r262943
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/memory_resource