Phil Endecott schrieb:
>>> Maybe there is some subtle bug in there.
>
> OK, how about this. In ++DFB/include/++dfb.h, there is what looks like
> a copy constructor:
>
> IPPAny(const IMPLEMENTINGCLASS &other) {
>
> I don't think that's ever being called - debug statements added there
> don't print.
> I think that's because it has the wrong parameter type to be recognised
> as a copy constructor. The copy constructor for class X must be X(const
> X &), i.e. in this case:
>
> IPPAny(const IPPAny<IMPLEMENTINGCLASS,IPPAny_C> &other) {
Nice, this might got broken at some point when templates have been
introduced.
> Making that change, my test programs at least get a bit further than
> they used to.
Where does it crash now? Application error?
> Any comments? (What about the operator= in the same file?)
The assignment(?) operator, e.g. to keep a reference
to an interface in class members.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users