[C++-sig] wrapper & HeldType

David Abrahams dave at boost-consulting.com
Wed Oct 19 16:35:37 CEST 2005


Roman Yakovenko <roman.yakovenko at gmail.com> writes:

> On 10/19/05, David Abrahams <dave at boost-consulting.com> wrote:
>> What I'm asking is that you show some code that doesn't work, but that
>> you think ought to work, if the interface were better.
>
> Do you mean under "doesn't work" - does not compile. 

I mean "doesn't compile" or "fails an assertion at runtime"

> If so I am resending my example, fixed to show my point. Now file
> contains code that I think I should write in order to export class
> with virtual methods and non default held type.
>
> If you mean "doesn't work" as run time error then such thing does
> not exists.

Ideally, you'd also post runtime code that, even aftere compilation is
fixed, would assert unless the compiled code had the effects you
wanted.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list