aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@gmail.com>2017-03-16 01:13:20 +0200
committerVille Voutilainen <ville@gcc.gnu.org>2017-03-16 01:13:20 +0200
commitdf99018275c29e891ebb41634b8a34ad7e6bcfad (patch)
treef3ea96ef5ad56196f35709d8914b3629291eb9a9 /gcc
parent8b8e41e5c236b4d878f56011c4bb68dd396e5e9a (diff)
downloadgcc-df99018275c29e891ebb41634b8a34ad7e6bcfad.zip
gcc-df99018275c29e891ebb41634b8a34ad7e6bcfad.tar.gz
gcc-df99018275c29e891ebb41634b8a34ad7e6bcfad.tar.bz2
Implement LWG 2857, {variant,optional,any}::emplace should return the constructed value.
Implement LWG 2857, {variant,optional,any}::emplace should return the constructed value. * include/std/any (emplace(_Args&&...)): Change the return type and return a reference to the constructed value. (emplace(initializer_list<_Up>, _Args&&...)): Likewise. * include/std/optional (emplace(_Args&&...)): Likewise. (emplace(initializer_list<_Up>, _Args&&...)): Likewise. * include/std/variant (emplace<_Tp>(_Args&&...)): Likewise. (emplace<_Tp>(initializer_list<_Up>, _Args&&...)): Likewise. (emplace<_Np>(_Args&&...)): Likewise. (emplace<_Np>(initializer_list<_Up>, _Args&&...)): Likewise. * testsuite/20_util/any/assign/emplace.cc: Add tests for checking the return value of emplace. * testsuite/20_util/any/misc/any_cast_neg.cc: Adjust. * testsuite/20_util/optional/assignment/6.cc: Add tests for checking the return value of emplace. * testsuite/20_util/variant/run.cc: Likewise. From-SVN: r246182
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions