Skip to content

Commit b5a7bda

Browse files
author
Matthias Wittgen
committed
replace std::result_of_t
1 parent 9ddcbc5 commit b5a7bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/lsst/cpputils/tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ constexpr void assertValidHash() {
8484
static_assert(is_same<typename Hash::result_type, size_t>::value,
8585
"std::hash must have a result_type member until C++20");
8686
// Ability to call Hash(T) hard to test before C++17
87-
static_assert(is_same<result_of_t<Hash(T)>, size_t>::value,
87+
static_assert(is_same<std::invoke_result_t<Hash, T>, size_t>::value,
8888
"std::hash specializations must be callable and return a size_t");
8989
}
9090

0 commit comments

Comments
 (0)