Build failure in CppBuildInsights.hpp
Closed this issue · 1 comments
lackhoa commented
I downloaded the code from release 2.3.23042701, and was unable to build it using Visual Studio 2022
1>C:\Users\vodan\Downloads\vcperf\packages\Microsoft.Cpp.BuildInsights.1.4.0\build\native\inc\CppBuildInsights.hpp(1832,51): error C2275: 'Microsoft::Cpp::BuildInsights::Internal::Info<Microsoft::Cpp::BuildInsights::Activities::LinkerGroup>::TMaterializedEntity': expected an expression instead of a type
1>C:\Users\vodan\Downloads\vcperf\packages\Microsoft.Cpp.BuildInsights.1.4.0\build\native\inc\CppBuildInsights.hpp(1832,20): error C2672: 'MatchEvent': no matching overloaded function found
JodiTheTigger commented
I fixed it by adding typename
to the offending line:
return MatchEvent<typename Info<TGroupEntity>::TMaterializedEntity>(
// ^^^^^^^^