string main() // Error, Can't implicitly convert from 'const string' to 'string'..
{
const string str;
return str;
}
string main() // Ok
{
const string str;
string str2=str;
return str2;
}
Implicit convert of returned value
2.16.1 (not last revision)
WinXP, 32bit
Reproduce:
Valid code, works fine on MinGW.
Probably just your function being named main().
nothing to see here, folks, move along
[Edited by - nullsquared on May 20, 2009 6:27:06 PM]
Probably just your function being named main().
nothing to see here, folks, move along
[Edited by - nullsquared on May 20, 2009 6:27:06 PM]
Quote: Original post by nullsquared
Valid code, works fine on MinGW.
Probably just your function being named main().
This is the Angelscript forum.
I'll look into this. Thanks.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Quote: Original post by rip-offQuote: Original post by nullsquared
Valid code, works fine on MinGW.
Probably just your function being named main().
This is the Angelscript forum.
The forum is hidden all the way to the right on active topics, didn't notice it [embarrass]
Quote: Original post by SiCrane
It also happens to be at the top of the page when you view the thread.
At just about the same size font as on active topics, <font size="unnoticeable">
I've checked in the fix for this now. Pick up revision 413 for the changes.
Thanks,
Andreas
Thanks,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement