BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BCB 5 cant convert error message

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
Larry
Guest





PostPosted: Fri Nov 11, 2005 10:35 pm    Post subject: BCB 5 cant convert error message Reply with quote



I get this message when I do a compile and I can't figure out why it can't
convert something that has equality. What am I doing incorrectly?

HEADER FILE ...

void __fastcall ( (__closure *SavedDestructor) ) ();

CODE ...

SavedDestructor = ds->~TDataSet;

COMPILER ERROR ...

[C++ Error] DMPropharmU.cpp(21): E2034 Cannot convert

'void (_fastcall * (_closure )())()' to
'void (_fastcall * (_closure )())()'


Back to top
Alan Bellingham
Guest





PostPosted: Sat Nov 12, 2005 2:10 am    Post subject: Re: BCB 5 cant convert error message Reply with quote



"Larry" <larry (AT) kalos-inc (DOT) com> wrote:

Quote:
I get this message when I do a compile and I can't figure out why it can't
convert something that has equality. What am I doing incorrectly?

HEADER FILE ...

void __fastcall ( (__closure *SavedDestructor) ) ();

CODE ...

SavedDestructor = ds->~TDataSet;

COMPILER ERROR ...

[C++ Error] DMPropharmU.cpp(21): E2034 Cannot convert

'void (_fastcall * (_closure )())()' to
'void (_fastcall * (_closure )())()'

Ooo, now that's interesting.

I'm not surprised you can't do it, BTW - the constructor and destructor
functions can't have their addresses taken, IIRC. And it looks like this
doesn't work on closures either.

The warning could be better.

Alan Bellingham
--
Team Thai Kingdom
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html> netiquette

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.