blob: 8e357dc14ef56cb1723dca775d769f6d7e8756d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
Fixes boost filesystem version detection error when compiling
Index: project/librets/include/librets/RetsExceptionContext.h
===================================================================
--- project/librets/include/librets/RetsExceptionContext.h (revision 1552)
+++ project/librets/include/librets/RetsExceptionContext.h (revision 1553)
@@ -22,6 +22,7 @@
*/
/// @cond MAINTAINER
#include <string>
+#include <boost/filesystem/path.hpp>
namespace librets {
/**
@@ -36,12 +37,12 @@
bool IsValid() const throw();
- std::string GetFileName() const throw();
+ boost::filesystem::path GetFileName() const throw();
int GetLineNumber() const throw();
private:
- std::string mFileName;
+ boost::filesystem::path mFileName;
int mLineNumber;
};
Index: project/librets/src/RetsExceptionContext.cpp
===================================================================
--- project/librets/src/RetsExceptionContext.cpp (revision 1552)
+++ project/librets/src/RetsExceptionContext.cpp (revision 1553)
@@ -14,14 +14,12 @@
* both the above copyright notice(s) and this permission notice
* appear in supporting documentation.
*/
-#define BOOST_FILESYSTEM_VERSION 2
#include <boost/filesystem/path.hpp>
#include "librets/RetsExceptionContext.h"
using namespace librets;
using namespace std;
-#undef BOOST_FILESYSTEM_VERSION
#define BOOST_FILESYSTEM_VERSION 3
namespace fs = boost::filesystem;
@@ -43,7 +41,7 @@
return (!mFileName.empty());
}
-string RetsExceptionContext::GetFileName() const throw()
+fs::path RetsExceptionContext::GetFileName() const throw()
{
return mFileName;
}
Index: project/librets/src/RetsReplyException.cpp
===================================================================
--- project/librets/src/RetsReplyException.cpp (revision 1552)
+++ project/librets/src/RetsReplyException.cpp (revision 1553)
@@ -52,4 +52,4 @@
string RetsReplyException::GetExtendedMeaning() const throw()
{
return mExtendedMeaning;
-}
\ No newline at end of file
+}
|