[cfe-dev] CLang compiling windows.h from the Windows SDK
Sean Hunt
rideau3 at gmail.com
Sun Aug 8 15:38:25 PDT 2010
On 08/08/2010 04:13 PM, Christopher Jefferson wrote:
> It is truly undeclared, this is due to windows being lax on what it accepts in templates. However, with some careful consideration, clang could possibly consider making it a magic type, if there is only a very small number of such hacks required to parse windows.h. I haven't done a careful analysis of how many such examples there are.
>
> Chris
static_cast isn't a template, it's an operator. Does MSVC accept
"IUnknown * i;" or "static_cast <foo*>(ptr)" when IUnknown and foo
haven't been declared?
Sean
More information about the cfe-dev
mailing list