forked from tungstenfabric/tf-third-party
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboost_1_48_patch6.diff
More file actions
78 lines (73 loc) · 1.86 KB
/
boost_1_48_patch6.diff
File metadata and controls
78 lines (73 loc) · 1.86 KB
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
69
70
71
72
73
74
75
76
77
78
diff --git a/boost_1_48_0/boost/filesystem/v3/operations.hpp b/boost_1_48_0/boost/filesystem/v3/operations.hpp
index c64f376..1adf5de 100644
--- a/boost_1_48_0/boost/filesystem/v3/operations.hpp
+++ b/boost_1_48_0/boost/filesystem/v3/operations.hpp
@@ -892,11 +892,15 @@ namespace detail
const std::string & what_arg, system::error_code ec)
: system::system_error(ec, what_arg)
{
+#ifndef BOOST_NO_EXCEPTIONS
try
+#endif
{
m_imp_ptr.reset(new m_imp);
}
+#ifndef BOOST_NO_EXCEPTIONS
catch (...) { m_imp_ptr.reset(); }
+#endif
}
filesystem_error(
@@ -904,12 +908,16 @@ namespace detail
system::error_code ec)
: system::system_error(ec, what_arg)
{
+#ifndef BOOST_NO_EXCEPTIONS
try
+#endif
{
m_imp_ptr.reset(new m_imp);
m_imp_ptr->m_path1 = path1_arg;
}
+#ifndef BOOST_NO_EXCEPTIONS
catch (...) { m_imp_ptr.reset(); }
+#endif
}
filesystem_error(
@@ -917,13 +925,17 @@ namespace detail
const path& path2_arg, system::error_code ec)
: system::system_error(ec, what_arg)
{
+#ifndef BOOST_NO_EXCEPTIONS
try
+#endif
{
m_imp_ptr.reset(new m_imp);
m_imp_ptr->m_path1 = path1_arg;
m_imp_ptr->m_path2 = path2_arg;
}
+#ifndef BOOST_NO_EXCEPTIONS
catch (...) { m_imp_ptr.reset(); }
+#endif
}
~filesystem_error() throw() {}
@@ -944,7 +956,9 @@ namespace detail
if (!m_imp_ptr.get())
return system::system_error::what();
+#ifndef BOOST_NO_EXCEPTIONS
try
+#endif
{
if (m_imp_ptr->m_what.empty())
{
@@ -964,10 +978,12 @@ namespace detail
}
return m_imp_ptr->m_what.c_str();
}
+#ifndef BOOST_NO_EXCEPTIONS
catch (...)
{
return system::system_error::what();
}
+#endif
}
private: