Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-06-13 16:08:43


--- In boost_at_[hidden], "Mark Rodgers" <mark.rodgers_at_c...> wrote:
> I was wondering if we are trying to be too clever with
operators.hpp.

<snip>
 
> Now everything is less complex, and I've got sizeof(myclass) back
> to 4 without relying on any compiler optimisations.

Yes, I've been considering an approach like that one for some of my
Python wrapping work. It does simplify things an awful lot, doesn't
it? It's certainly worth publishing that approach in the
documentation. I don't think it will work for the dereference
operators -> and [], which require a this pointer. Also, the iterator
helpers rely on inheritance from std::iterator.

-Dave


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