copy string, don't get reference from boost::filesystem::path

This commit is contained in:
Dane Springmeyer 2011-06-13 21:42:44 +00:00
parent 1f32c4c9d7
commit 1829093fc9

View file

@ -215,9 +215,9 @@ void map_parser::parse_map( Map & map, ptree const & pt, std::string const& base
boost::filesystem::path xml_path(filename_); boost::filesystem::path xml_path(filename_);
// TODO - should we make this absolute? // TODO - should we make this absolute?
#if (BOOST_FILESYSTEM_VERSION == 3) #if (BOOST_FILESYSTEM_VERSION == 3)
std::string const& base = xml_path.parent_path().string(); std::string base = xml_path.parent_path().string();
#else // v2 #else // v2
std::string const& base = xml_path.branch_path().string(); std::string base = xml_path.branch_path().string();
#endif #endif
map.set_base_path( base ); map.set_base_path( base );