danielaparker / jsoncons

A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
https://danielaparker.github.io/jsoncons
Other
726 stars 164 forks source link

Arm-none-eabi-gcc compiler gives error #508

Closed SlowTypist closed 6 months ago

SlowTypist commented 6 months ago

https://github.com/danielaparker/jsoncons/blob/b883d895ec25ed21b084cd4c78ae3c2725737f68/include/jsoncons/detail/optional.hpp#L261

Throws error: error: third operand to the conditional operator is of type 'void', but the second operand is neither a throw-expression nor of type 'void' 261 | ? get()

danielaparker commented 6 months ago

@SlowTypist Could you check if that compiles now on master?

Thanks, Daniel

SlowTypist commented 6 months ago

@SlowTypist Could you check if that compiles now on master?

Thanks, Daniel

LGTM, compiles now.