re PR libstdc++/84601 (std::optional<std::pair<int, int>> is not assignment copyable)
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 6 Mar 2018 21:43:03 +0000 (23:43 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Tue, 6 Mar 2018 21:43:03 +0000 (23:43 +0200)
commit447346e465c50ad6d840c2c29c9a07417e8d219c
tree56cf39d2d50ac52cbb5d0f09f3d1202d629673e6
parent1dc23505191d6ac79af9d403e7c543addd760ebd
re PR libstdc++/84601 (std::optional<std::pair<int, int>> is not assignment copyable)

PR libstdc++/84601
* include/std/optional (_Optional_payload): Split into multiple
specializations that can handle different cases of trivial or
non-trivial assignment operators.
* testsuite/20_util/optional/84601.cc: New.
* testsuite/20_util/optional/cons/value_neg.cc: Adjust.

From-SVN: r258304
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/84601.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/optional/cons/value_neg.cc