возвращение совместимости со старым boost 177/head
authorfsb4000 <fsb4000@yandex.ru>
Mon, 2 Mar 2015 13:35:08 +0000 (19:35 +0600)
committerfsb4000 <fsb4000@yandex.ru>
Mon, 2 Mar 2015 13:35:08 +0000 (19:35 +0600)
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"