Android ndk – error: ‘to_string’ was not declared in this scope

Posted: June 25, 2013 in android, c++, JNI/NDK, mobile

Google Android development team – you’re a bunch of whores!

Why std is so fu**ing old??????

need to write your own to_string function

string to_string (int num)
{
ostringstream convert; // stream used for the conversion

convert << num; // insert the textual representation of ‘Number’ in the characters    in the stream

return convert.str();
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s