fix for windows with old boost

This commit is contained in:
Mathias Stearn
2010-02-01 21:34:13 -05:00
parent 981d13fb83
commit 2de4b90bf9

View File

@@ -233,7 +233,7 @@ namespace mongo {
assert( !program.empty() );
boost::filesystem::path programPath = ( boost::filesystem::path( argv0 ) ).branch_path() / program;
#ifdef _WIN32
programPath.replace_extension("exe");
programPath = change_extension(programPath, ".exe");
#endif
massert( 10435 , "couldn't find " + programPath.native_file_string(), boost::filesystem::exists( programPath ) );