diff --git a/src/zipios++/dircoll.cpp b/src/zipios++/dircoll.cpp index 1c6243da9..5b086f70b 100644 --- a/src/zipios++/dircoll.cpp +++ b/src/zipios++/dircoll.cpp @@ -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 } }