Remove boost::filesystem include from header

This commit is contained in:
Vinnie Falco
2013-05-20 09:20:28 -07:00
parent 51e3e10a94
commit 61e5addd62
2 changed files with 10 additions and 3 deletions

View File

@@ -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())

View File

@@ -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);
};