Open
Description
wil/include/wil/Tracelogging.h
Lines 188 to 204 in eb9eb35
According to https://learn.microsoft.com/en-us/cpp/cpp/storage-classes-cpp?view=msvc-170, function-local "magic statics" are fully supported.
Instead of defining a custom static_lazy type, use the built-in support.
- Remove static_lazy<>
- On line 2283ish in the
Instance()
method:
static TraceLoggingClassName* Instance() WI_NOEXCEPT \
{ \
static TraceLoggingClassName wrapper; \
return wrapper; \
} \
friend class wil::details::static_lazy<TraceLoggingClassName>;
Activity