Implement LWG 2733 and LWG 2759
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 14 Nov 2017 18:11:33 +0000 (20:11 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Tue, 14 Nov 2017 18:11:33 +0000 (20:11 +0200)
commit13545f19e0e7f1d73ae6c0b39f6b86240de509a8
tree7722acdb4f0bcb6fdcb8ef9545dbbfb719e46a78
parentd2e9196e5f8849bac2d4fa7fa5599eb2338c76bd
Implement LWG 2733 and LWG 2759

* include/experimental/numeric (gcd): Reject cv-qualified bool.
(lcm): Likewise.
* include/std/numeric (gcd): Likewise.
(lcm): Likewise.
* testsuite/26_numerics/gcd/gcd_neg.cc: Add tests and adjust.
* testsuite/26_numerics/lcm/lcm_neg.cc: Likewise.

From-SVN: r254736
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/numeric
libstdc++-v3/include/std/numeric
libstdc++-v3/testsuite/26_numerics/gcd/gcd_neg.cc
libstdc++-v3/testsuite/26_numerics/lcm/lcm_neg.cc