 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Larry Guest
|
Posted: Fri Nov 11, 2005 10:35 pm Post subject: BCB 5 cant convert error message |
|
|
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
|
Posted: Sat Nov 12, 2005 2:10 am Post subject: Re: BCB 5 cant convert error message |
|
|
"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 |
|
 |
|
|
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
|
|