F
Fraser Ross
I was looking at the new explicit conversion operators in the standard.
The writing at the start of 12.3.2/2 doesn't make sense. "A conversion
function may be explicit (7.1.2), in which case it is only considered as
a user-defined conversion for direct-initialization (8.5)." That
sentence is ok. "Otherwise, user-defined conversions are not restricted
to use in assignments and initializations." This one contradicts the
other. Initialisation using the = symbol is not assignment.
Is the g() function meant to be an example for 12.3.2/1?
Fraser.
The writing at the start of 12.3.2/2 doesn't make sense. "A conversion
function may be explicit (7.1.2), in which case it is only considered as
a user-defined conversion for direct-initialization (8.5)." That
sentence is ok. "Otherwise, user-defined conversions are not restricted
to use in assignments and initializations." This one contradicts the
other. Initialisation using the = symbol is not assignment.
Is the g() function meant to be an example for 12.3.2/1?
Fraser.