--- boost/filesystem/path.hpp 2004-08-26 23:55:47.000000000 +0800 +++ boost/filesystem/path.hpp 2005-01-20 15:09:14.000000000 +0800 @@ -161,6 +161,8 @@ BOOST_FILESYSTEM_DECL bool portable_file_name( const std::string & name ); BOOST_FILESYSTEM_DECL bool no_check( const std::string & name ); // always returns true BOOST_FILESYSTEM_DECL bool native( const std::string & name ); + typedef bool (*my_name_check)( const std::string & name ); + BOOST_FILESYSTEM_DECL my_name_check get_native(); // native(name) must return true for any name which MIGHT be valid // on the native platform. --- libs/filesystem/src/path_posix_windows.cpp 2004-11-12 09:34:49.000000000 +0800 +++ libs/filesystem/src/path_posix_windows.cpp 2005-07-20 16:33:36.000000000 +0800 @@ -144,6 +144,7 @@ return true; } # endif + BOOST_FILESYSTEM_DECL my_name_check get_native() { return native; } BOOST_FILESYSTEM_DECL bool no_check( const std::string & ) { return true; }