summaryrefslogtreecommitdiff
path: root/fn_signature_checker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'fn_signature_checker.cc')
-rw-r--r--fn_signature_checker.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/fn_signature_checker.cc b/fn_signature_checker.cc
index 985c719..bd1db20 100644
--- a/fn_signature_checker.cc
+++ b/fn_signature_checker.cc
@@ -55,13 +55,13 @@ void do_work() {
//
// If the partial specialization (3) is enabled, this could also match a
// static member function T::get.
- static_assert(std::is_same<fn_t<int(int)>, fn_t<decltype(&T::get)>>::value,
+ static_assert(std::is_same<int(int), fn_t<decltype(&T::get)>>::value,
"T has no member function 'int get(int)'");
// Check for non-static member function.
- static_assert(std::is_same<fn_t<void(int)>, fn_t<decltype(&T::set)>>::value,
+ static_assert(std::is_same<void(int), fn_t<decltype(&T::set)>>::value,
"T has no member function 'void set(int)'");
// Check for static member function.
- static_assert(std::is_same<fn_t<int()>, fn_t<decltype(T::cnt)>>::value,
+ static_assert(std::is_same<int(), fn_t<decltype(T::cnt)>>::value,
"T has no static function 'static int cnt()'");
}