[ 
https://issues.apache.org/jira/browse/MINIFICPP-2642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gábor Gyimesi updated MINIFICPP-2642:
-------------------------------------
    Fix Version/s: 1.0.0
                       (was: 0.99.2)

> std::invocable should be used with std::invoke
> ----------------------------------------------
>
>                 Key: MINIFICPP-2642
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2642
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Marton Szasz
>            Assignee: Marton Szasz
>            Priority: Trivial
>             Fix For: 1.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Replacing calls with invoke where invocable is used.
> [https://en.cppreference.com/w/cpp/concepts/invocable]
> The invocable concept checks that type F can be called with arguments Args... 
> using std::invoke. Std::invoke is more general than a direct function call: 
> it supports member function and data member pointers too, where the first 
> "argument" is the object.
> In theory, if we checked for invocable but called directly, someone could 
> pass a member pointer as the callback, and it would pass the concept check 
> but fail to build.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to