-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
from_*(ptr, len) deprecation #2426
Comments
You mean the version number? |
My understanding of the release note wording is that e.g. |
The recommended alternative is not |
@nlohmann Probably good to update the deprecation notice to include that one as well, as it's not really covered by the current note. |
Agreed. My experience with this was something like this:
I can (and do) use the ptr/ptr+len overload instead (although the ptr/len combo is quite convenient when applicable). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sorry for not reacting earlier. In order to clean the API after a lot of experimenting with how to cope with different input types, we decided that the overload that takes two iterators is the one we would like to proceed with. The release notes are indeed misleading. They should read:
@lrasinen @gregmarr Do you agree with the new wording of the last sentence? |
I'm quite happy with suggested wording, thanks. |
I adjusted the release notes of version 3.8.0, 3.9.0, and 3.9.1. |
LGTM |
From 3.9.1 release notes:
However, the pointer/length overload is marked as deprecated at least for the
from_*
functions:Is this an error in the release notes or is the deprecation in error?
The text was updated successfully, but these errors were encountered: