cereal
cereal copied to clipboard
cereal does not support C++17
cereal does not support C++17 The json format serialized in C++17 is incorrect Serializing json results correctly in C++11 / C++14 How do I fix it to support C++17?

If you use the C++17 standard library
His serialization to json is an error result
I use the VS2019 C++17 compiler
cereal 1.32

There is an important difference in your code that is causing this problem. See here: https://uscilab.github.io/cereal/quickstart.html and read the section "Serialize your data" note:
Important! If you didn’t read that paragraph about cereal using RAII, read it again! Some archives in cereal can only safely finish flushing their contents upon their destruction. Make sure, especially for output serialization, that your archive is automatically destroyed when you are finished with it.
ok
------------------ 原始邮件 ------------------ 发件人: "Shane @.>; 发送时间: 2023年4月24日(星期一) 中午11:14 收件人: @.>; 抄送: " @.>; @.>; 主题: Re: [USCiLab/cereal] cereal does not support C++17 (Issue #782)
There is an important difference in your code that is causing this problem. See here: https://uscilab.github.io/cereal/quickstart.html and read the section "Serialize your data" note:
Important! If you didn’t read that paragraph about cereal using RAII, read it again! Some archives in cereal can only safely finish flushing their contents upon their destruction. Make sure, especially for output serialization, that your archive is automatically destroyed when you are finished with it.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>