akirchhoff-modular 4bf10f3da7
[YAMLTraits] Fix std::optional input on empty documents (#68947)
When the input document is non-empty, `mapOptional` works as expected,
setting `std::optional` to `std::nullopt` when the field is not present.
When the input document is empty, we hit a special case inside of
`Input::preflightKey` that results in `UseDefault = false`, which
results in the `std::optional` erroneously being set to a non-nullopt
value. `preflightKey` is changed to set `UseDefault = true` in this case
to make the behavior consistent between empty and non-empty documents.
2023-10-16 15:14:17 -05:00
..
2023-08-23 19:16:41 -04:00
2023-06-13 10:47:18 +01:00
2023-05-30 14:12:20 -07:00
2023-02-23 18:11:15 +00:00
2023-07-18 13:36:11 -07:00