------- Comment #1 from jwakely dot gcc at gmail dot com  2009-06-30 09:53 
-------
(In reply to comment #0)
> I'm trying to use SFINAE to disable overloads when a function call expression
> is invalid, which is needed to implement std::bind for C++0x

N.B. the use of an invalid expression in a sizeof context is not valid in
C++03, but the SFINAE rules were extended to cover general expressions by n2634
so I believe the code is valid in C++0x (see 14.9.2 [temp.deduct] p8 in WP
n2914) and should result in a type deduction failure not a hard error.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40595

Reply via email to