[cfe-dev] [PATCH] Libc++ Windows fixes

Per Lindén per.linden at lumai.se
Sun Oct 23 06:57:58 PDT 2011

Not sure this is worth mentioning, but since error C2516 is defined as 
"The class is derived from a type name defined by a typedef statement.", 
so for example naively changing the second variant of common_type in the 
test case you posted to connect.microsoft.com to

  template <class _Tp>
    struct common_type<_Tp, void, void>
        _Tp && type;

makes the test case compile under VS2010 for me. (probably breaking any 
intended functionality completely) In any case I get "error C2371: 
'size_t' : redefinition; different basic types" from the test case, so 
maybe reducing it a bit can improve upon the miniscule chance of it 
being fixed...? You have my vote anyway.


More information about the cfe-dev mailing list