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
821 stars 66 forks source link

fix: handle wstrings being different lengths and constructed correctly #63

Closed Lazrius closed 5 months ago

Lazrius commented 5 months ago

Hiya. I made a mistake when doing the original wstring parser. It would crash when trying to construct a wstring for reading due to the parameters being inverted. I tested it on MSVC which worked fine, but when setting it up on Clang it crashed.

liuzicheng1987 commented 5 months ago

Ok. Thanks for the contribution!