wil::reg::try_get_value()
is gated by _OPTIONAL_
and __cpp_lib_optional
, but can't be re-included
#489
Labels
improvement
Something that would improve the repo in some way
WIL has several features where the features available from
<wil/feature.hpp>
depend on which headers have already been included; for the majority of these, you can include the header again, but this doesn't work for<wil/registry.h>
as the entire file is gated with a traditional include guard for__WIL_REGISTRY_INCLUDED
Concretely, given how other parts of WIL work, I would expect this to work but it does not:
This is problematic when other a different header includes
<registry.h>
.Suggested fixes:
As an example of tweak headers,
wil/registry.h
could start with:I could then make a
wil-reg.tweaks.h
be included in my build, and include<optional>
in that header.The text was updated successfully, but these errors were encountered: