Skip to content

Commit

Permalink
Fix register_function() not working on older MSVC versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cschreib committed Sep 9, 2024
1 parent 6ac5fd1 commit 9f79a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libjsonexpr/include/jsonexpr/functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function_result call(
JSONEXPR_EXPORT void add_type(std::string& key, std::string_view type);

template<typename T>
concept function_ptr = std::is_function_v<std::remove_pointer_t<T>>;
concept function_ptr = std::is_function_v<std::remove_pointer_t<std::remove_cvref_t<T>>>;

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

0 comments on commit 9f79a7f

Please sign in to comment.