felixguendling / cista

Cista is a simple, high-performance, zero-copy C++ serialization & reflection library.
https://cista.rocks
MIT License
1.84k stars 119 forks source link

cista::optional: add bool conversion operator #219

Closed khng300 closed 6 months ago

khng300 commented 6 months ago

Besides calling has_value() to check if the container contains anything, if (opt) pattern can be used as well.

felixguendling commented 6 months ago

Thanks!