re PR libstdc++/77727 (Unwrapping std::optional constructor is not working for non...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 26 Sep 2016 20:51:42 +0000 (23:51 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 26 Sep 2016 20:51:42 +0000 (23:51 +0300)
commit71ade764add5ced9179fa9f7af69448185fddc9c
tree6fdb0f9f94a4bea3194bd0516e3d7861952699f7
parentf2fe9e0a693192aa5a131bc8704dc11353f613de
re PR libstdc++/77727 (Unwrapping std::optional constructor is not working for non-transferable object)

    PR libstdc++/77727
    * include/std/optional (optional(const optional<_Up>&)):
    Default-initialize the base and use emplace.
    (optional(optional<_Up>&&)): Likewise.
    * testsuite/20_util/optional/cons/77727.cc: New.

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