Compiling etw_logger_exporter.h with c++latest fails #3237
Labels
bug
Something isn't working
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Issue description
Otel does not compile with c++latest. More specifically, file
etw_logger_exporter.h
is causing issues.Repro steps
Extract the attached zip file. Open the folder in latest Visual Studio 2022. Configure should run automatically. After that build all with
Ctrl+Shift+B
. The build should fail if Clang preset is selected. MSVC preset works fine.Example error output
Proposed fix
Do appropriate cast of different integer/enum types in first line of
AddFieldInfo
.Current line:
Potential fix:
The text was updated successfully, but these errors were encountered: