I am using the following code and everything work fine :
#include <string>
irr::scene::IAnimatedMesh* Mworld = sceneManager->getMesh("world.obj");
...unfortunately, I need to store the string "world.obj" in a variable. So I use something like...
#include <string>
std::string name = "world.obj";
irr::scene::IAnimatedMesh* Mworld = sceneManager->getMesh(&name);
and I get an error within the string class itself...
...something such as...
Code: Select all
irrString.h|282|error: could not convert '*(p ++)' to 'bool'|
Can anyone help me solving my problem please ?
I turned it in every directions yet I couldn't find the solution :/