------- Comment #2 from jason at gcc dot gnu dot org  2009-11-21 21:41 -------
>Shouldn't SFINAE cause those invalid instantiations to be ignored, silently
>removing the invalid overloads from the overload set, leaving just the one I'm
>trying to call?

No, SFINAE only applies to function signatures; if considering a signature
triggers an invalid instantiation, that makes the program ill-formed.

I think the version without result_of ought to work, however.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-11-21 21:41:03
               date|                            |


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

Reply via email to