+ fix build errors with VS2010

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5122 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-11-12 23:20:42 +00:00
parent bb3d204603
commit 21042dd515

View File

@ -134,13 +134,21 @@ void DirectoryCollection::load( bool recursive, const FilePath &subdir ) {
if ( *it == "." || *it == ".." || *it == "..." )
continue ;
# if (defined(_MSC_VER) && (_MSC_VER >= 1800))
if ( boost::filesystem::get< is_directory >( it ) && recursive ) {
load( recursive, subdir + *it ) ;
} else {
_entries.push_back( ent = new BasicEntry( subdir + *it, "", _filepath ) ) ;
ent->setSize( boost::filesystem::get< boost::filesystem::size >( it ) ) ;
}
#else
if ( get< is_directory >( it ) && recursive ) {
load( recursive, subdir + *it ) ;
} else {
_entries.push_back( ent = new BasicEntry( subdir + *it, "", _filepath ) ) ;
ent->setSize( get< boost::filesystem::size >( it ) ) ;
}
#endif
}
}