-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
can't parse std::vector<std::byte> #2869
Comments
This works on the latest #include <iostream>
#include "json.hpp"
using json = nlohmann::json;
int main()
{
std::vector<std::byte> rg = {(std::byte)'t', (std::byte)'r', (std::byte)'u', (std::byte)'e'};
auto j = nlohmann::json::parse(rg.begin(), rg.end());
std::cout << j << std::endl;
} Output: true |
are you going to tag a release containing this fix any time soon? or should i just try to cherry-pick this into 3.9.1? |
It is fixed with #2550 and will be part of the next release. I do not have a release date, though. |
Duplicate of #2546. |
i see that 3.9.1 was nearly 11 months ago. would it be possible to have separate branches for bug fixes and new features and prioritize releasing fixes to bugs like this? |
No, I'm sorry I don't have the capacity to do so. |
(I am running this project beside my day job, so I cannot make any promises or guarantees. You can sponsor my work, though.) |
this worked in v2.1.1, but no longer works in v3.9.1:
i tried just passing the iterators directly:
but this gives a bunch of these:
The text was updated successfully, but these errors were encountered: