diff options
author | Ville Voutilainen <ville.voutilainen@gmail.com> | 2018-11-19 17:05:18 +0200 |
---|---|---|
committer | Ville Voutilainen <ville@gcc.gnu.org> | 2018-11-19 17:05:18 +0200 |
commit | 4fea820523334138d7165f20333ef30ba8e01c1d (patch) | |
tree | 0828c69521fcbb3b64b70574083219e58f70668c /gcc | |
parent | f615cb162df6f026d7f8798a74f0241df43251b1 (diff) | |
download | gcc-4fea820523334138d7165f20333ef30ba8e01c1d.zip gcc-4fea820523334138d7165f20333ef30ba8e01c1d.tar.gz gcc-4fea820523334138d7165f20333ef30ba8e01c1d.tar.bz2 |
re PR libstdc++/87855 (std::optional<T> only copy-constructible if T is trivially copy-constructible)
PR libstdc++/87855
Also implement P0602R4 (variant and optional
should propagate copy/move triviality) for std::optional.
* include/std/optional (_Optional_payload): Change
the main constraints to check constructibility in
addition to assignability.
(operator=): Make constexpr.
(_M_reset): Likewise.
(_M_construct): Likewise.
(operator->): Likewise.
* testsuite/20_util/optional/assignment/8.cc: Adjust.
* testsuite/20_util/optional/assignment/9.cc: New.
From-SVN: r266278
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions