Cross library string problem. New to Irr. (But not coding)
-
- Competition winner
- Posts: 687
- Joined: Mon Sep 10, 2012 8:51 am
Re: Cross library string problem. New to Irr. (But not codi
I think he just wants irrString::c_str(), which returns the pointer to the array. If he needs to access the individual slots, he can use the [] operator. If he needs to allocate data, he can use his own allocator instead of the default irrAllocator<T>. But that's all I can offer based on what I can figure he's asking for.
Re: Cross library string problem. New to Irr. (But not codi
No it's about sharing strings. So telling core::string to not manage the memory at all. But that's hard to put in without having an interface where half the functions no longer do anything - so each one would need additional checks. And you don't really want to put additional checks in string functions.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm