[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
(http://msdn.microsoft.com/en-us/library/4d8f5kf3%28v=VS.100%29.aspx)
"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>
{
public:
_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.
/PL
More information about the cfe-dev
mailing list