Edit: This issue is solved, thank you.
The main problem here is with syntax. What I'm trying to do is instancing Ogre::Entity* type objects in a for loop, but they all need to be uniquely named for the scene to render. Obviously, when the function reaches the Ogre::Entity* entity_name line, the string variable entity_name is replaced with an Entity type object (no longer a string).
The bottom line: Is there a way for the object instancing to read the contents of a string variable and name the new instance after the string content? Like Ogre::Entity* hex_deep_ocean_0 = ... where the hex_deep_ocean_0 part is retrieved from a string variable.
(Note: I've added short to string conversion code after that screenshot was taken. The string operations are working, I just don't know how I'm supposed to make object creation iterable.)