Merge pull request #177 from fsb4000/patch-1
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Tue, 3 Mar 2015 22:02:36 +0000 (01:02 +0300)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Tue, 3 Mar 2015 22:02:36 +0000 (01:02 +0300)
возвращение совместимости со старым boost

src/util.cpp

index f69c600..481da94 100644 (file)
@@ -1157,7 +1157,11 @@ void createConf()
     srand(time(NULL));
 
     ofstream pConf;
+#if BOOST_FILESYSTEM_VERSION >= 3
     pConf.open(GetConfigFile().generic_string().c_str());
+#else
+    pConf.open(GetConfigFile().string().c_str());
+#endif
     pConf << "rpcuser=user\nrpcpassword="
             + randomStrGen(15)
             + "\nrpcport=8344"