<p>Op 23 okt. 2011 18:51 schreef "Per Lindén" <<a href="mailto:per.linden@lumai.se">per.linden@lumai.se</a>> het volgende:<br>
><br>
> Not sure this is worth mentioning, but since error C2516 is defined as<br>
> (<a href="http://msdn.microsoft.com/en-us/library/4d8f5kf3%28v=VS.100%29.aspx">http://msdn.microsoft.com/en-us/library/4d8f5kf3%28v=VS.100%29.aspx</a>)<br>
> "The class is derived from a type name defined by a typedef statement.",<br>
> so for example naively changing the second variant of common_type in the<br>
> test case you posted to <a href="http://connect.microsoft.com">connect.microsoft.com</a> to<br>
><br>
> template <class _Tp><br>
> struct common_type<_Tp, void, void><br>
> {<br>
> public:<br>
> _Tp && type;<br>
> };<br>
><br>
> makes the test case compile under VS2010 for me. (probably breaking any<br>
> intended functionality completely) In any case I get "error C2371:<br>
> 'size_t' : redefinition; different basic types" from the test case, so<br>
> maybe reducing it a bit can improve upon the miniscule chance of it<br>
> being fixed...? You have my vote anyway.</p>
<p>I compiled for 64-bit, it's preprocessed source code, so that's the reason. Anyhow, you're probably right. I'll try to reduce it more when I find the time.</p>
<p>Howard, is this (the start of) a viable workaround?</p>
<p>Ruben</p>
<p>><br>
> /PL<br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</p>