|
Boost : |
From: Brian Davis (bitminer_at_[hidden])
Date: 2008-07-24 22:09:42
>--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.
Brian
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk