Jump to content
  • Advertisement
Sign in to follow this  
cvet

Implicit convert of returned value

This topic is 3322 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

2.16.1 (not last revision) WinXP, 32bit Reproduce:
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;
}

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites
Quote:
Original post by nullsquared
Valid code, works fine on MinGW.

Probably just your function being named main().

This is the Angelscript forum.

Share this post


Link to post
Share on other sites
Quote:
Original post by rip-off
Quote:
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]

Share this post


Link to post
Share on other sites
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">

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!