[libcxx-commits] [PATCH] D72106: Remove unnecessary typenames from std/numerics/c.math/abs.pass.cpp
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 14 07:10:02 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf54e7b4e3a13: [libc++] Remove unnecessary typenames from std/numerics/c.math/abs.pass.cpp (authored by ldionne).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72106/new/
https://reviews.llvm.org/D72106
Files:
libcxx/test/std/numerics/c.math/abs.pass.cpp
Index: libcxx/test/std/numerics/c.math/abs.pass.cpp
===================================================================
--- libcxx/test/std/numerics/c.math/abs.pass.cpp
+++ libcxx/test/std/numerics/c.math/abs.pass.cpp
@@ -47,7 +47,7 @@
{
// On some systems char is unsigned.
// If that is the case, we should just test signed char twice.
- typedef typename std::conditional<
+ typedef std::conditional<
std::is_signed<char>::value, char, signed char
>::type SignedChar;
@@ -63,10 +63,10 @@
// Here there is no guarantee that int is larger than int8_t so we
// use a helper type trait to conditional test against int.
- test_abs<std::int8_t, typename correct_size_int<std::int8_t>::type>();
- test_abs<std::int16_t, typename correct_size_int<std::int16_t>::type>();
- test_abs<std::int32_t, typename correct_size_int<std::int32_t>::type>();
- test_abs<std::int64_t, typename correct_size_int<std::int64_t>::type>();
+ test_abs<std::int8_t, correct_size_int<std::int8_t>::type>();
+ test_abs<std::int16_t, correct_size_int<std::int16_t>::type>();
+ test_abs<std::int32_t, correct_size_int<std::int32_t>::type>();
+ test_abs<std::int64_t, correct_size_int<std::int64_t>::type>();
test_abs<long double, long double>();
test_abs<double, double>();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72106.244658.patch
Type: text/x-patch
Size: 1324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200214/f31ebf72/attachment.bin>
More information about the libcxx-commits
mailing list