LWG 2733, LWG 2759 reject bool in gcd and lcm
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Oct 2016 12:17:34 +0000 (13:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 10 Oct 2016 12:17:34 +0000 (13:17 +0100)
commitf2e79496bf9107eae1130e0d74c80b02a5b86cab
treefc968dde050b4f8e7c93f354fd7cd301953f699c
parentfee13acdd89f77a81a63711534f1d0737b965d1d
LWG 2733, LWG 2759 reject bool in gcd and lcm

* include/experimental/numeric (gcd, lcm): Make bool arguments
ill-formed.
* include/std/numeric (gcd, lcm): Likewise.
* testsuite/26_numerics/gcd/gcd_neg.cc: New test.
* testsuite/26_numerics/lcm/lcm_neg.cc: New test.

From-SVN: r240919
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/numeric
libstdc++-v3/include/std/numeric
libstdc++-v3/testsuite/26_numerics/gcd/gcd_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/lcm/lcm_neg.cc [new file with mode: 0644]