Visual C++ has made some conformance changes to conditional operator
that will be available under /permissive- and which make the inference of
result type of the conditional operator in these 2 places ambiguous. This
happens because the class type in one of the arguments provides both: the
constructor from and the conversion operator to T - LCWSTR here.
Commit migrated from https://github.com/dotnet/coreclr/commit/
67f40646d76d914ab7f099df25768c73c4f55bad
{ // Look for final '\'
pName = wcsrchr(buf, W('\\'));
// If found, skip it; if not, point to full name.
- pName = pName ? pName+1 : buf;
+ pName = pName ? pName+1 : (LPCWSTR)buf;
}
}
{
// If app name has a '\', consider the part after that; otherwise consider whole name.
LPCWSTR appName = wcsrchr(appPath, W('\\'));
- appName = appName ? appName+1 : appPath;
+ appName = appName ? appName+1 : (LPCWSTR)appPath;
m_Description.Append(appName);
m_Description.Append(W("\n"));
}