summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-11-15 00:27:06 +0000
committerEric Fiselier <eric@efcs.ca>2018-11-15 00:27:06 +0000
commitae533d31af508b1b83bf637a4ddf84378ed07de1 (patch)
tree931ec277e2819096510d9b3ccafb6f3a4b702e13
parentea6ced9d1a64097b9ea356b1e14a6c40b3a63353 (diff)
downloadbcm5719-llvm-ae533d31af508b1b83bf637a4ddf84378ed07de1.tar.gz
bcm5719-llvm-ae533d31af508b1b83bf637a4ddf84378ed07de1.zip
Work around C++03 decltype limitations
llvm-svn: 346917
-rw-r--r--libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp b/libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp
index 7967e76d908..beb56080061 100644
--- a/libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp
+++ b/libcxx/test/libcxx/depr/depr.function.objects/depr.adaptors.cxx1z.pass.cpp
@@ -37,10 +37,10 @@ int main()
typedef std::pointer_to_binary_function<int, int, int> PBF;
static_assert(
- (std::is_same<PUF, decltype(std::ptr_fun<int, int>(identity))>::value),
+ (std::is_same<PUF, decltype((std::ptr_fun<int, int>(identity)))>::value),
"");
static_assert(
- (std::is_same<PBF, decltype(std::ptr_fun<int, int, int>(sum))>::value),
+ (std::is_same<PBF, decltype((std::ptr_fun<int, int, int>(sum)))>::value),
"");
assert((std::ptr_fun<int, int>(identity)(4) == 4));
@@ -54,9 +54,9 @@ int main()
typedef std::const_mem_fun_ref_t<int, Foo> CMFR;
static_assert(
- (std::is_same<MFR, decltype(std::mem_fun_ref(&Foo::zero))>::value), "");
- static_assert((std::is_same<CMFR, decltype(std::mem_fun_ref(
- &Foo::zero_const))>::value),
+ (std::is_same<MFR, decltype((std::mem_fun_ref(&Foo::zero)))>::value), "");
+ static_assert((std::is_same<CMFR, decltype((std::mem_fun_ref(
+ &Foo::zero_const)))>::value),
"");
assert((std::mem_fun_ref(&Foo::zero)(f) == 0));
OpenPOWER on IntegriCloud