diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-16 12:28:09 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-16 12:28:09 +0100 |
commit | 54d94698a26a6e48e691fde17791b2f6e4ca73b7 (patch) | |
tree | f9c6acdeafb813f8adf13950f00d4c1283d0c0d9 | |
parent | Build with an STL semaphore when available (diff) | |
download | libadhocutil-54d94698a26a6e48e691fde17791b2f6e4ca73b7.tar.bz2 libadhocutil-54d94698a26a6e48e691fde17791b2f6e4ca73b7.tar.xz libadhocutil-54d94698a26a6e48e691fde17791b2f6e4ca73b7.zip |
Fix static_assert on case_less function
-rw-r--r-- | libadhocutil/case_less.cpp | 3 |
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>)>); |