]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/ChangeLog
Do the operator= SFINAE in the return type for optional,
authorVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 20 Oct 2016 11:54:52 +0000 (14:54 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Thu, 20 Oct 2016 11:54:52 +0000 (14:54 +0300)
commitf320e6a09193654596cd347fae835e85b458f94c
treee918f7173f1a80275990376780df8b568e73df2c
parent88b3e631506a51e5e1ae04224efe0b5ac5f7d0ca
Do the operator= SFINAE in the return type for optional,

not in the template parameters.
* include/std/optional (operator=(_Up&&)): Move SFINAE
from template parameters to the return type.
(operator=(const optional<_Up>&)): Likewise.
(operator=(optional<_Up>&&)): Likewise.

From-SVN: r241372
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/optional