Skip to content

Commit 76dc90f

Browse files
authored
Merge pull request #203 from berolinux/bero/fix-boost-1.85
Fix build with boost 1.85.0
2 parents a460863 + c18ead2 commit 76dc90f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/store/MMapDirectory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ MMapIndexInput::MMapIndexInput(const String& path) {
3636
bufferPosition = 0;
3737
if (!path.empty()) {
3838
try {
39-
file.open(boost::filesystem::wpath(path), _length);
39+
file.open(boost::filesystem::path(path), _length);
4040
} catch (...) {
4141
boost::throw_exception(FileNotFoundException(path));
4242
}

src/core/util/FileUtils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
/////////////////////////////////////////////////////////////////////////////
66

77
#include "LuceneInc.h"
8-
#include <boost/filesystem/convenience.hpp>
98
#include <boost/filesystem/operations.hpp>
109
#include <boost/filesystem/path.hpp>
10+
#include <boost/filesystem/directory.hpp>
1111
#include "LuceneThread.h"
1212
#include "StringUtils.h"
1313
#include "FileUtils.h"
@@ -128,12 +128,12 @@ String joinPath(const String& path, const String& file) {
128128
}
129129

130130
String extractPath(const String& path) {
131-
boost::filesystem::wpath parentPath(path.c_str());
131+
boost::filesystem::path parentPath(path.c_str());
132132
return parentPath.parent_path().wstring().c_str();
133133
}
134134

135135
String extractFile(const String& path) {
136-
boost::filesystem::wpath fileName(path.c_str());
136+
boost::filesystem::path fileName(path.c_str());
137137
return fileName.filename().wstring().c_str();
138138
}
139139

0 commit comments

Comments
 (0)