mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 08:55:53 +00:00
Remove boost::filesystem include from header
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include "../websocketpp/src/logger/logger.hpp"
|
||||
|
||||
@@ -171,7 +172,7 @@ LogSeverity Log::stringToSeverity(const std::string& s)
|
||||
return lsINVALID;
|
||||
}
|
||||
|
||||
void Log::setLogFile(boost::filesystem::path path)
|
||||
void Log::setLogFile(boost::filesystem::path const& path)
|
||||
{
|
||||
std::ofstream* newStream = new std::ofstream(path.c_str(), std::fstream::app);
|
||||
if (!newStream->good())
|
||||
|
||||
@@ -6,7 +6,13 @@
|
||||
#include <limits>
|
||||
|
||||
#include <boost/thread/recursive_mutex.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
// Forward declaration
|
||||
namespace boost {
|
||||
namespace filesystem {
|
||||
class path;
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure that we don't get value.h without writer.h
|
||||
#include "../json/json.h"
|
||||
@@ -100,7 +106,7 @@ public:
|
||||
|
||||
static LogSeverity getMinSeverity();
|
||||
static void setMinSeverity(LogSeverity, bool all);
|
||||
static void setLogFile(boost::filesystem::path);
|
||||
static void setLogFile(boost::filesystem::path const&);
|
||||
static std::string rotateLog(void);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user