Fix gcd breakage.

* include/std/numeric (gcd): Use remove_cv_t, not remove_cv.

From-SVN: r254785
This commit is contained in:
Ville Voutilainen 2017-11-15 22:42:58 +02:00 committed by Ville Voutilainen
parent 3b26ae8285
commit 865a86a0fd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-11-15 Ville Voutilainen <ville.voutilainen@gmail.com>
Fix gcd breakage.
* include/std/numeric (gcd): Use remove_cv_t, not remove_cv.
2017-11-15 Jonathan Wakely <jwakely@redhat.com>
* testsuite/27_io/filesystem/iterators/directory_iterator.cc: Leave

View File

@ -135,7 +135,7 @@ namespace __detail
static_assert(is_integral_v<_Nn>, "gcd arguments are integers");
static_assert(!is_same_v<remove_cv_t<_Mn>, bool>,
"gcd arguments are not bools");
static_assert(!is_same_v<remove_cv<_Nn>, bool>,
static_assert(!is_same_v<remove_cv_t<_Nn>, bool>,
"gcd arguments are not bools");
return __detail::__gcd(__m, __n);
}