getml / reflect-cpp

A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, BSON, CBOR, flexbuffers, msgpack, TOML, XML, YAML / msgpack.org[C++20]
https://getml.github.io/reflect-cpp/
MIT License
982 stars 85 forks source link

Update wstring parser to remove needless null terminators #104

Closed Lazrius closed 4 months ago

Lazrius commented 4 months ago

Hey again. Sorry to edit the same code again. I made a false assumption with the original code requring explicit null terminators. We have found out that some of our code was breaking due to the extra null terminator being present within the strings. I have removed them as needed.

In hindsight I should have been more thorough with my testing.

liuzicheng1987 commented 4 months ago

@Lazrius , OK, no problem. I'll just wait for the checks to fully run through and then merge.