You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Weston Pace (Jira)" <ji...@apache.org> on 2021/04/01 10:23:00 UTC

[jira] [Created] (ARROW-12177) [C++] Investigate moving away from std::function in AsyncGenerator

Weston Pace created ARROW-12177:
-----------------------------------

             Summary: [C++] Investigate moving away from std::function in AsyncGenerator
                 Key: ARROW-12177
                 URL: https://issues.apache.org/jira/browse/ARROW-12177
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Weston Pace
            Assignee: Weston Pace


Most of async_generator.h uses std::function to store the operator functions.  Primarily this was to simplify the implementation.  However, now that it is being used more it ends up being somewhat wordy because lambda cannot be implicitly assigned to std::function.  This has gotten to the point where we have created templated overloads that wrap the lambdas in functions.

It may be time to take a second look at this decision and converting over to templated callable types.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)