Skip to content

Commit 9f79a7f

Browse files
committed
Fix register_function() not working on older MSVC versions
1 parent 6ac5fd1 commit 9f79a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libjsonexpr/include/jsonexpr/functions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function_result call(
3636
JSONEXPR_EXPORT void add_type(std::string& key, std::string_view type);
3737

3838
template<typename T>
39-
concept function_ptr = std::is_function_v<std::remove_pointer_t<T>>;
39+
concept function_ptr = std::is_function_v<std::remove_pointer_t<std::remove_cvref_t<T>>>;
4040

4141
template<typename T>
4242
concept stateless_lambda = (!function_ptr<T>) && requires(const T& func) {

0 commit comments

Comments
 (0)