spnda / fastgltf

A modern C++17 glTF 2.0 library focused on speed, correctness, and usability
https://fastgltf.readthedocs.io/v0.8.x/
MIT License
275 stars 42 forks source link

Better monadic operations for `fastgltf::OptionalWithFlagValue<T>` #70

Closed n0F4x closed 4 weeks ago

n0F4x commented 4 weeks ago

The current implementation of the and_then and transform return OptionalWithFlagValue<T>. These could be changed to return Optional<*type based on the parameter's return type*>.

Also, the const overloads of these functions are missing. They should be added as well.