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

Two tiny changes to fix compilation errors on the clang / Dawwin platform. #49

Closed melton1968 closed 6 months ago

melton1968 commented 6 months ago

These are two tiny changes that fix compilation errors on the clang / Darwin platform.

  1. Add default initialization to arr_ in StringLiteral.hpp #48
  2. Add include for <string> in Result.hpp
liuzicheng1987 commented 6 months ago

I‘m on the road at the moment. Will merge as soon as I get to my destination. Thank you for figuring this out.