[libavg-devel] Dynamic Node Creation Enhancements

Nick Hebner hebnern at gmail.com
Thu Feb 14 07:01:58 CET 2008


On Wed, Feb 13, 2008 at 1:27 PM, Ulrich von Zadow <uzadow at libavg.de> wrote:

> Hi,
>
> I need a bit of time to look this over, because I still think it should
> work. Member variables of base classes never move in derived classes
> (even with multiple inheritance), as long as you always use a pointer to
> the base class. For simple single inheritance, the pointer to an object
> shouldn't change either in a cast from base to derived class and back.
> offsetof(), while technicaly undefined, _should_ work for these objects
> in all sane implementations of C++ (For discussions of this, see
> http://gcc.gnu.org/ml/gcc/2003-11/msg00279.html and
> http://carcino.gen.nz/tech/cpp/multiple_inheritance_this.php).
>

Hmm, ok you clearly know much more about it than I do, so I'll leave it to
you.

>
> It might take a moment for me to get around to it, though, so getting
> the first patch into svn would be great.
>

Great. Would you like me to submit another patch to the list, or just commit
it?

Also, about cleaning up the duplication in the test script: From what I can
tell, you cannot pass parameters to test case functions. Do you know of an
easy way around this off hand?

>
> Cheers,
>
>   Uli
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.datenhain.de/pipermail/libavg-devel/attachments/20080213/791f3b27/attachment.htm 


More information about the libavg-devel mailing list