Fix windows build.

This commit is contained in:
Patrick Niklaus 2014-11-18 11:52:39 +01:00
parent 7658031784
commit d3ca080729

View File

@ -398,7 +398,7 @@ bool Prepare::ParseArguments(int argc, char *argv[])
const auto& temp_config_path = option_variables["config"].as<boost::filesystem::path>(); const auto& temp_config_path = option_variables["config"].as<boost::filesystem::path>();
if (boost::filesystem::is_regular_file(temp_config_path)) if (boost::filesystem::is_regular_file(temp_config_path))
{ {
boost::program_options::store(boost::program_options::parse_config_file<char>(temp_config_path.c_str(), cmdline_options, true), boost::program_options::store(boost::program_options::parse_config_file<char>(temp_config_path.string().c_str(), cmdline_options, true),
option_variables); option_variables);
} }