[boost] generic uses of optionalT

2003-09-01 Thread Dave Gomboc
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

Re: [boost] generic uses of optionalT

2003-09-01 Thread Brian McNamara
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) )

Re: [boost] generic uses of optionalT

2003-09-01 Thread Joel de Guzman
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,