#include "stardata.hxx"
#if defined (_MSC_VER)
- SG_USING_STD(getline);
+ using std::getline;
#endif
// Constructor
_stars.clear();
// build the full path name to the stars data base file
- path.append( "stars" );
- SG_LOG( SG_ASTRO, SG_INFO, " Loading stars from " << path.str() );
+ SGPath tmp = path;
+ tmp.append( "stars" );
+ SG_LOG( SG_ASTRO, SG_INFO, " Loading stars from " << tmp.str() );
- sg_gzifstream in( path.str() );
+ sg_gzifstream in( tmp.str() );
if ( ! in.is_open() ) {
SG_LOG( SG_ASTRO, SG_ALERT, "Cannot open star file: "
- << path.str() );
+ << tmp.str() );
return false;
}