19 Nov
2014
19 Nov
'14
7:01 a.m.
On Wed, Nov 19, 2014 at 9:58 AM, Vicente J. Botet Escriba
Le 19/11/14 01:55, Vladimir Batov a écrit :
Hmm, aren't we talking about different conversions? I was referring to "T to optional<T>". I have the feeling that you are referring to "optional<T> to T". I've never been advocating the implicit latter.
You are right. I was referring to optional<T> to T conversions. The T to optional<T> conversion suffer from overload resolution ambiguity.
void f(int); void f(optional<int>);
f(1); // ambiguous.
No, it's not. The second f() requires user-defined conversion and the first one does not.