Here's a (contrived) example of how the implicit conversion breaks
generic code:
[example snipped]
The point is that optionalT is not a T, and most notably, a template
function will never perform the coercion. Replace the lines like
B b = get2(args);
in your example with real calls
On Sun, Aug 31, 2003 at 09:12:59PM -0600, Dave Gomboc wrote:
The point is that optionalT is not a T, and most notably, a template
function will never perform the coercion. Replace the lines like
B b = get2(args);
in your example with real calls to, e.g.
do_something( get2(args) )
Brian McNamara [EMAIL PROTECTED] wrote:
On Sun, Aug 31, 2003 at 09:12:59PM -0600, Dave Gomboc wrote:
The point is that optionalT is not a T, and most notably, a template
function will never perform the coercion. Replace the lines like
B b = get2(args);
in your example with real calls to,