Always qualify std::forward in <variant>
authorJonathan Wakely <redi@gcc.gnu.org>
Thu, 22 Sep 2016 09:56:54 +0000 (10:56 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 22 Sep 2016 09:56:54 +0000 (10:56 +0100)
commit64626fcaaaa2584a244db423d48e5bebfc6ade33
tree11ec47740429344e5fc95aa87dece56a5a192a5e
parentc42bc5d73bcfa5c631a4da35830a710a11d507b7
Always qualify std::forward in <variant>

* include/bits/uses_allocator.h (__uses_allocator_construct): Qualify
std::forward and ::new. Cast pointer to void*.
* include/std/variant (_Variant_storage, _Union, _Variant_base)
(__access, __visit_invoke, variant, visit): Qualify std::forward.
* testsuite/20_util/variant/compile.cc: Test for ADL problems.

From-SVN: r240344
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/uses_allocator.h
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/20_util/variant/compile.cc