Skip to content

Commit

Permalink
Arduino strings defines an F macro for flash strings. (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 authored Jan 29, 2025
1 parent 33c6471 commit e057461
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c++/cavl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ template <typename Derived>
class Node // NOSONAR cpp:S1448
{
// Polyfill for C++17's std::invoke_result_t.
template <typename F, typename... Args>
template <typename Function, typename... Args>
using invoke_result =
#if __cplusplus >= 201703L
std::invoke_result_t<F, Args...>;
std::invoke_result_t<Function, Args...>;
#else
std::result_of_t<F(Args...)>;
std::result_of_t<Function(Args...)>;
#endif

public:
Expand Down

0 comments on commit e057461

Please sign in to comment.