Re: [boost] generic uses of optional

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 optional is not a T, and most notably, a template >>> function will never perform the coercion. Replace the lines like >>>B b = get<2>(args); >>> in your example with

Re: [boost] generic uses of optional

2003-09-01 Thread Brian McNamara
On Sun, Aug 31, 2003 at 09:12:59PM -0600, Dave Gomboc wrote: > > The point is that optional is not a T, and most notably, a template > > function will never perform the coercion. Replace the lines like > >B b = get<2>(args); > > in your example with real calls to, e.g. > >do_something( ge

[boost] generic uses of optional

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 optional is not a T, and most notably, a template > function will never perform the coercion. Replace the lines like >B b = get<2>(args); > in your example with rea