DEVELOP > c-Plus-Plus > Virtual function 'BasicMidReader::~BasicMidReader()' conflicts with base class 'base 'TMemoryStream'
| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"tomek" |
| Date: |
26 Nov 2003 07:36:06 PM |
| Object: |
Virtual function 'BasicMidReader::~BasicMidReader()' conflicts with base class 'base 'TMemoryStream' |
Can anybody explain why can I not get rid of the above message
in the following class definition? [I am using Borland C++ Builder 5.0]
Thank you in advance.
class BasicMidReader : public TMemoryStream
{
//some private date
public:
BasicMidReader(char* FN)
{// some code}
~BasicMidReader() {// some code}
};
.
|
|
| User: "Rob Williscroft" |
|
| Title: Re: Virtual function 'BasicMidReader::~BasicMidReader()' conflicts with base class 'base 'TMemoryStream' |
26 Nov 2003 08:44:15 PM |
|
|
tomek wrote in news:bq3kjp$fui$1@atlantis.news.tpi.pl:
Can anybody explain why can I not get rid of the above message
in the following class definition? [I am using Borland C++ Builder 5.0]
Thank you in advance.
class BasicMidReader : public TMemoryStream
{
//some private date
public:
BasicMidReader(char* FN)
{// some code}
Did you mean <hint> Post real code whenever possible </hint>:
{ /* some code */ }
~BasicMidReader() {// some code}
};
I suspect this is A) a compiler bug, or B) something relating to
C++Builders non-standard language extension (TMemoryStream is a vcl
class) or C) (A) and (B).
So you should probably ask in a borland newsgroup, info here:
http://info.borland.com/newsgroups/
Just a random guess try puting __fastcall in the declaration of
BasicMidReader( char *FN ) i.e __fastcall BasicMidReader( char *FN ),
the dtor possibly needs it too.
HTH.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
.
|
|
|
|
| User: "Andrey Tarasevich" |
|
| Title: Re: Virtual function 'BasicMidReader::~BasicMidReader()' conflictswith base class 'base 'TMemoryStream' |
01 Dec 2003 12:31:25 AM |
|
|
tomek wrote:
Can anybody explain why can I not get rid of the above message
in the following class definition? [I am using Borland C++ Builder 5.0]
Thank you in advance.
class BasicMidReader : public TMemoryStream
{
//some private date
public:
BasicMidReader(char* FN)
{// some code}
~BasicMidReader() {// some code}
};
I can only guess. Maybe 'TMemoryStream's destructor has narrower
exception specification? Something like 'TMemoryStream::~TMemoryStream()
throw ()'? I don't know whether Borland's compiler detects this type of
error.
--
Best regards,
Andrey Tarasevich
.
|
|
|
|

|
Related Articles |
|
|