Talk:Substitution failure is not an error

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Compiler Example error[edit]

The example appears to be incorrect. With "g++ (GCC) 4.2.2" function "#2" is called both times.

Sounds like an error in your compiler. If you want, you can post your complete code here or on my talk page, and I'll take a look at it. decltype (talk) 06:55, 17 March 2009 (UTC)[reply]
No he is correct. The second example is in error. The first prototype takes a pointer. Neither call uses a pointer argument. Thus, both call the (...) version. —Preceding unsigned comment added by 192.91.172.42 (talk) 21:46, 12 January 2011 (UTC)[reply]
That comment was made back in 2009, at which time the article looked like this. There are no pointers or ellipses in that example. decltype (talk) 09:21, 13 January 2011 (UTC)[reply]
And the second example also seems correct from what I can tell. test<T>(0) with T=foo matches yes& test<foo>(foo::type*). 0 is convertible to pointer-to-float. decltype (talk) 09:33, 13 January 2011 (UTC)[reply]

Variables "yes" and "no" are guaranteed to have different sizes[edit]

I think that should be Types "yes" and "no" are guaranteed to have different sizes, shouldn't it? — Preceding unsigned comment added by Srrrgei (talkcontribs) 13:17, 15 December 2011 (UTC)[reply]