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

Ferenc Gerlits commented on MINIFICPP-2329:
-------------------------------------------

This works on Visual Studio: 
https://github.com/fgerlits/nifi-minifi-cpp/commit/5764608ccfdc73f7849893eb5da3c36f35b7ec1e

When gcc 14 and llvm 20 (or whichever version supports {{std::chrono::parse}}) 
are out, we should test this code change with those standard libraries, as well.

> Replace the date library with C++20 stdlib functions
> ----------------------------------------------------
>
>                 Key: MINIFICPP-2329
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2329
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Ferenc Gerlits
>            Priority: Minor
>
> Everything in Howard Hinnant's date library has been incorporated (either 
> verbatim or in slightly changed form) in C++20, so we should be able to 
> remove this dependency and use the new functions in the standard library 
> instead.
> Unfortunately, only Visual Studio has fully implemented this part of C++ 20, 
> the other standard libraries are still missing {{std::chrono:parse()}}.  This 
> should be fixed in [gcc 14|https://gcc.gnu.org/gcc-14/changes.html] but it's 
> still not in the upcoming [llvm 19|https://libcxx.llvm.org/ReleaseNotes.html] 
> release – let's hope for llvm 20.



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

Reply via email to