#14711 introduced some warnings when building with gcc compiler.
See:
- #14711 (comment) by @laanwj
- #14711#pullrequestreview-193702611 by @ryanofsky
This gcc issue has been known since version 4.6.0 and last updated in 2017. From the boost docs:
The default constructor of
optional
creates an uninitializedoptional
object.
Also: False positive with -Wmaybe-uninitialized (pointed out by @Empact)
This PR removes these warnings.