libstdc++: Ensure std::forward_as_tuple is defined
authorJonathan Wakely <jwakely@redhat.com>
Thu, 22 Oct 2020 23:58:35 +0000 (00:58 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 23 Oct 2020 00:12:00 +0000 (01:12 +0100)
commitca021ac617277ba73cb694f8d26ec0f5e1293451
treeb04d7cb192c82d21a89dfc13c5c6d8158b27cf53
parent5c1506304c52c29497a12c65734caaaa99996f77
libstdc++: Ensure std::forward_as_tuple is defined

The recent changes to reduce includes in <memory_resource> went a bit
too far, and it's possible for std::forward_as_tuple to not be defined
when used.

While doing this, I noticed the problematic calls to forward_as_tuple
were not qualified, so performed unwanted ADL.

libstdc++-v3/ChangeLog:

* include/experimental/memory_resource: Include <tuple>.
(polymorphic_allocator::construct): Qualify forward_as_tuple.
* include/std/memory_resource: Likewise.
libstdc++-v3/include/experimental/memory_resource
libstdc++-v3/include/std/memory_resource