summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-10-16 12:28:09 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-10-16 12:28:09 +0100
commit54d94698a26a6e48e691fde17791b2f6e4ca73b7 (patch)
treef9c6acdeafb813f8adf13950f00d4c1283d0c0d9
parentBuild with an STL semaphore when available (diff)
downloadlibadhocutil-54d94698a26a6e48e691fde17791b2f6e4ca73b7.tar.bz2
libadhocutil-54d94698a26a6e48e691fde17791b2f6e4ca73b7.tar.xz
libadhocutil-54d94698a26a6e48e691fde17791b2f6e4ca73b7.zip
Fix static_assert on case_less function
-rw-r--r--libadhocutil/case_less.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libadhocutil/case_less.cpp b/libadhocutil/case_less.cpp
index 5e83f68..7960990 100644
--- a/libadhocutil/case_less.cpp
+++ b/libadhocutil/case_less.cpp
@@ -1,4 +1,5 @@
#include "case_less.h"
#include <string_view>
-static_assert(&AdHoc::case_less::operator()<std::string_view, std::string_view>);
+static_assert(
+ std::is_member_function_pointer_v<decltype(&AdHoc::case_less::operator()<std::string_view, std::string_view>)>);