Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2006-06-28 12:58:18


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Ovanes Markarian
> Sent: Wednesday, June 28, 2006 12:39 PM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] Interesting question, may be potential feature
>
> But as some of you might have seen I have to pass to all accessors the
> reference or pointer to the
> accessed discrminated union type. So every instance requires on 32bit
OS
> at least 4 bytes. The
> banal thing is that a group of accessors accesses the same type. The
> question/idea here would be
> to use or to make these objects share the reference, so that all
related
> accessor references
> require 4 bytes. What do you think of this? Is it possible at all?

[Nat] Um, make accessors be methods of a small object that contains the
reference?

But in that case, why wouldn't the convenience methods be attached to
the referenced union object itself?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net