-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ date types depend on C++ standard #160
Comments
Two potential solutions:
|
For more context, the two underlying types Issues do manifest, however, when using a Yardl model:
C++ client executable:
The serialized record is valid, but when it is deserialized, it is a |
Yardl defines the
yardl::Date
type differently depending on the C++ standard used for compilation (std::chrono::local_days
for C++20 and newer,date::local_days
otherwise).Yardl officially supports C++17 and C++20, but code generated from the same model and compiled separately for each standard is not compatible.
This becomes a problem when publishing a shared library for a Yardl model. Which C++ standard should be used to build the shared library? If we build and publish using C++20 or newer, users need to compile their client code with C++20 or newer. Likewise for C++17 or older.
The text was updated successfully, but these errors were encountered: