Make optional::reset noexcept, make optional::value work in constant expressions.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 29 Sep 2016 15:20:28 +0000 (18:20 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Thu, 29 Sep 2016 15:20:28 +0000 (18:20 +0300)
commita181f672314a7f5e35c9fd2cef0f4816fbc64d55
tree8d919a29dce885aa4b084d4dc841cab58e8d6963
parent69ba69c9ecffb795a12bc06d7978caa9f9e341ed
Make optional::reset noexcept, make optional::value work in constant expressions.

    Make optional::reset noexcept, make optional::value
    work in constant expressions.
    * include/std/optional (_M_get): Make constexpr.
    (reset): Make noexcept.
    * testsuite/20_util/optional/assignment/7.cc: New.
    * testsuite/20_util/optional/observers/6.cc: New.

From-SVN: r240623
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/assignment/7.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/optional/observers/6.cc [new file with mode: 0644]