You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2021/07/23 11:05:00 UTC

[jira] [Commented] (MINIFICPP-1289) Add range-v3

    [ https://issues.apache.org/jira/browse/MINIFICPP-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17386163#comment-17386163 ] 

Marton Szasz commented on MINIFICPP-1289:
-----------------------------------------

I forgot to reply to this, but I guess better late than never. The error message is about the lambda type not satisfying the Sentinel concept. Actions can't be used with the | operator. Try ranges::actions::sort(matched_files_with_mtime, first_by_mtime_then_by_name);.

Now that the language upgrade is near the finishing line, I would say wait until it's in and go for the latest range-v3. We can't go directly for std::ranges, because it's not yet implemented in libstdc++ 8.x, which we still need to support to keep compatibility with debian buster.

> Add range-v3
> ------------
>
>                 Key: MINIFICPP-1289
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1289
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Marton Szasz
>            Priority: Minor
>              Labels: MiNiFi-CPP-Hygiene
>
> Useful library to raise the level of abstraction from iterators to ranges and provide useful related concepts.



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