You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
n0F4x
added a commit
to n0F4x/fastgltf
that referenced
this issue
Aug 19, 2024
- missing check that function provided for `and_then` returns an optional type
- improved function call with `std::invoke`
-also fixes test cases where `quat::value_ptr` wasn't renamed to `quat::data`
The return type of `and_then` and `transform` is now a `Optional<T>`, since the return type is allowed to change and `OptionalWithFlagValue<T>` might not support that type. Those two functions now also have correct const overloads.
The current implementation of the
and_then
andtransform
returnOptionalWithFlagValue<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.The text was updated successfully, but these errors were encountered: