Bug 1424866 - Fix a warning: unnecessary parentheses in declaration of 'type name' r?gerald draft
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 03 Jan 2018 17:43:04 +0100
changeset 715319 cb529242b8d63fe6360bd5ba96ab39303d2f692d
parent 715318 3c5811b083f9d3c4f6a45a17e5d676e9db522551
child 744763 0c7fb2260471d8a6aa6fa71b68a61658b0924a44
push id94129
push usersledru@mozilla.com
push dateWed, 03 Jan 2018 16:43:24 +0000
reviewersgerald
bugs1424866
milestone59.0a1
Bug 1424866 - Fix a warning: unnecessary parentheses in declaration of 'type name' r?gerald MozReview-Commit-ID: CBOTKHgqDfV
mfbt/tests/TestTypeTraits.cpp
--- a/mfbt/tests/TestTypeTraits.cpp
+++ b/mfbt/tests/TestTypeTraits.cpp
@@ -66,17 +66,17 @@ static_assert(IsPointer<bool**>::value,
               "bool** is a pointer");
 static_assert(IsPointer<void (*)(void)>::value,
               "void (*)(void) is a pointer");
 struct IsPointerTest { bool m; void f(); };
 static_assert(!IsPointer<IsPointerTest>::value,
               "IsPointerTest not a pointer");
 static_assert(IsPointer<IsPointerTest*>::value,
               "IsPointerTest* is a pointer");
-static_assert(!IsPointer<bool(IsPointerTest::*)>::value,
+static_assert(!IsPointer<bool(IsPointerTest::*)()>::value,
               "bool(IsPointerTest::*) not a pointer");
 static_assert(!IsPointer<void(IsPointerTest::*)(void)>::value,
               "void(IsPointerTest::*)(void) not a pointer");
 
 static_assert(!IsLvalueReference<bool>::value,
               "bool not an lvalue reference");
 static_assert(!IsLvalueReference<bool*>::value,
               "bool* not an lvalue reference");