Topic: Feedback on n3727: A proposal to add invoke function template
Author: Martinho Fernandes <martinho.fernandes@gmail.com>
Date: Thu, 12 Sep 2013 17:59:00 +0200
Raw View
N3727 here: http://open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3727.html
In my view there is an important thing missing from this
specification: text that states that those overloads do not
participate on overload resolution unless the corresponding relevant
expression is well-formed.
The first overload, with result_of, already has that behaviour since
result_of lacks a member type when that's the case, so it's actually
ok.
But the second overload will always take part in overload resolution,
even if the relevant call expression is not well-formed. I think this
is unfortunate and requires jumping through hoops if you are making a
decision on whether some type is "invokable with a given result type".
Mit freundlichen Gr=FC=DFen,
Martinho
--=20
---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.
.