Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-24 22:26:21


AMDG

Brian Davis wrote:
>> --except where the compiler can
>> prove that no event is registered for a particular integer.
>>
>
> Yes... Exactly. Either you pay for the overhead of the template type or you
> pay in the compiler adding extra code for types where events can be
> registered. . The difference is that it provides for direct data binding for
> primitive types. Syntax can make it clear to the compiler that extra code
> must be inserted. In your example there is no syntax that specifies a
> get/set for the local variable i. The problem I think is clear the
> solution... not so much.
>

Ok. That's better. One more issue:

Callbacks should be unregistered when the object that they are associated
with are destroyed, right? How do you propose to handle this for POD?

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk