Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix boost filesystem incompatibility problem

  • Loading branch information...
commit 709c1b267fcf4992ede95e7aff3ed333c068dfa5 1 parent b6d11a3
@gavinandresen gavinandresen authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/db.cpp
View
6 src/db.cpp
@@ -44,10 +44,10 @@ static void EnvShutdown(bool fRemoveLogFiles)
while (it != filesystem::directory_iterator())
{
const filesystem::path& p = it->path();
-#if BOOST_FILESYSTEM_VERSION == 2
- std::string f = p.filename();
-#else
+#if BOOST_FILESYSTEM_VERSION == 3
std::string f = p.filename().generic_string();
+#else
+ std::string f = p.filename();
#endif
if (f.find("log.") == 0)
filesystem::remove(p);
Please sign in to comment.
Something went wrong with that request. Please try again.