http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46719
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-30
22:14:57 UTC ---
And here's an even simpler version without variadic templates or any other
C++0x features:
template <typename R>
struct function
{
template<typename F> function(F) { }
};
template <typename R>
int
curry(function<R> func)
{
return 0;
}
double f(int x) { return x; }
int main()
{
return curry( f );
}
G++ is correct to reject this, there's no way to deduce R