chronoxor / FastBinaryEncoding

Fast Binary Encoding is ultra fast and universal serialization solution for C++, C#, Go, Java, JavaScript, Kotlin, Python, Ruby, Swift
https://chronoxor.github.io/FastBinaryEncoding
MIT License
876 stars 90 forks source link

Add configurable optional<T> support to C++ #7

Closed ilue closed 5 years ago

ilue commented 5 years ago

First, thanks for this great library! I can't compile the generated source code in C++11 mode (I can't upgrade gcc on the builder machine). I try replace optional with some C++11 compatible implementation and it works. So it would be nice to have macros like FBE_OPTIONAL_HEADER and FBE_OPTIONAL_NS for selecting optional implementation.