Is there a switch that I can provide for cl.exe that will include a warning or an error if typename missing from a qualified dependent type?
I work in an environment where developers tend to work on the same platform, either on Windows or Linux, and the code is ultimately generated on both platforms at night. We run into a problem when people forget to use typename for qualified dependent types on Windows, where Visual C ++ 2008 will automatically add the missing typename , if possible. When they check the code in this way, it breaks the assembly on Linux, where g++ requires typename . It would be advisable to configure the Makefile so that we can expect the same typename behavior for Windows and Linux to reduce the likelihood of a build failure. I prefer g++ behavior, but anything that would help the two platforms behave the same would be very helpful.
See also Why do I need to use typedame typedef in g ++, but not VS?
c ++ visual-c ++ templates g ++
mrkj
source share