Hi Miha,
The message from the compiler is clear. Both TF1 and TDataSet
derive from TObject. Do not mix apples and oranges.
Use TDataSet as a member of your class instead.
Rene Brun
On Tue, 26 Feb 2002 miha.puc@marvin.fmf.uni-lj.si wrote:
> Hi!
> I have a class
> class TModelFunction : public TF1, public TDataSet { .....
>
> and when compiling I get messages like
>
> TModelFunction.cxx:121: type `TObject' is ambiguous base class for type
> `TModelFunction'
> TModelFunction.cxx:121: type `TModelFunction' is ambiguous baseclass of
> `TObject'
>
> line 121 is:
> _Foo = (TModelFunction *) (fList->After(_Foo));
> where _Foo is a pointer to TModelFunction object.
>
> What shall I do?
>
> Regards,
> Miha
> --
>
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:43 MET