avoid exception from boost.filesystem

This commit is contained in:
Arvid Norberg 2008-11-14 23:23:02 +00:00
parent 40946162b3
commit 7e4d5dc72f
1 changed files with 2 additions and 2 deletions

View File

@ -325,10 +325,10 @@ namespace libtorrent
#else
fs::path f = p / i->path;
#endif
// TODO: optimize
if (exists(f))
#ifndef BOOST_NO_EXCEPTIONS
try
#else
if (exists(f))
#endif
{
size = file_size(f);