../Source/Game/Fleet.cpp: In member function `const bool Fleet::Save(FILE*)':
../Source/Game/Fleet.cpp:82: warning: cannot pass objects of non-POD type `
const struct std::string' through `...'; call will abort at runtime
I have no clue what a POD type struct is or a `...' call.
I'm asumming the ... call is the %-substitution in printf()
I might be wrong..
Code:
const bool Fleet::Save( FILE *fd )
{
fprintf( fd ,
"\n[%s-Fleet_%s]\n"
"posx = %f\n"
"posy = %f\n"
"origin = %s\n"
"destx = %f\n"
"desty = %f\n"
, species.c_str() , name.c_str() , position.x , position.y , origin.c_str() , dest.x , dest.y );
if( !destination.empty() )
fprintf( fd , "destination = %s\n" , destination.c_str() );
int i = 0;
for( vector<Vessel *>::iterator it = begin() ; it != end() ; ++it )
for( int j = 0 ; j < (*it)->GetCount() ; j++ )
fprintf( fd , "%d = %s\n" , i++ , (*it)->vesselClass ); //LINE 82 with the error
return true;
}
Any clue what's happining?
I can provide any part of the code..and if you want you can get it from sourceforge.. Borqueror is GPLed (I'm porting it back to Linux, even though it's supposed to work)
Thanks