Do not risk your life with ustl on android

Put your problem here if it does not fit any of the other categories.

Do not risk your life with ustl on android

Postby darktemplar216 » Fri Jan 08, 2010 11:18 am

Android contains several files provides the utility of stl . Those Googlers called it ustl(by themselves).
This shit works very differently with standard stl.

1. ustring
char* a = new char[512];
memset
strcpy
string k = new string (a);
delete a;

k shall work perfectly with stl, but on android, k is gone with a;

check out this in ustring.h

/// Links to \p s
string::string (const_pointer s)
: memblock ()
{
if (!s)
s = empty_string;
link (s, strlen(s));
}



2. ulist

#ifdef ANDROID
renderEntityList->insert(it_Temp1,1,*it_Id);
it_Temp1+=2;
#else
renderEntityList->insert(it_Temp1++,1,*it_Id);
#endif

I have to write this kind of code!
darktemplar216
Freshman
Freshman
 
Posts: 4
Joined: Thu Jul 09, 2009 10:42 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests