File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 109
109
# define LOG4CPLUS_HAVE_RVALUE_REFS
110
110
#endif
111
111
112
+ #if defined (LOG4CPLUS_HAVE_CXX11_SUPPORT) \
113
+ && (__has_feature(cxx_noexcept) \
114
+ || (defined (_MSC_VER) && _MSC_VER >= 1900 ))
115
+ # define LOG4CPLUS_NOEXCEPT_FALSE noexcept (false )
116
+ #else
117
+ # define LOG4CPLUS_NOEXCEPT_FALSE /* empty */
118
+ #endif
119
+
112
120
#if ! defined (UNICODE) && defined (__GNUC__) && __GNUC__ >= 3
113
121
# define LOG4CPLUS_FORMAT_ATTRIBUTE (archetype, format_index, first_arg_index ) \
114
122
__attribute__ ((format (archetype, format_index, first_arg_index)))
Original file line number Diff line number Diff line change @@ -48,25 +48,25 @@ namespace log4cplus
48
48
public:
49
49
// ctor & dtor
50
50
HierarchyLocker (Hierarchy& h);
51
- ~HierarchyLocker ();
52
-
51
+ ~HierarchyLocker () LOG4CPLUS_NOEXCEPT_FALSE ;
52
+
53
53
/* *
54
54
* Calls the <code>resetConfiguration()</code> method on the locked Hierarchy.
55
55
*/
56
- void resetConfiguration ();
57
-
56
+ void resetConfiguration ();
57
+
58
58
/* *
59
59
* Calls the <code>getInstance()</code> method on the locked Hierarchy.
60
60
*/
61
61
Logger getInstance (const log4cplus::tstring& name);
62
-
62
+
63
63
/* *
64
64
* Calls the <code>getInstance()</code> method on the locked Hierarchy.
65
65
*/
66
66
Logger getInstance (const log4cplus::tstring& name, spi::LoggerFactory& factory);
67
-
67
+
68
68
void addAppender (Logger &logger, log4cplus::SharedAppenderPtr& appender);
69
-
69
+
70
70
private:
71
71
// Data
72
72
Hierarchy& h;
@@ -77,4 +77,3 @@ namespace log4cplus
77
77
} // end namespace log4cplus
78
78
79
79
#endif // LOG4CPLUS_HIERARCHY_LOCKER_HEADER_
80
-
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ HierarchyLocker::HierarchyLocker(Hierarchy& _h)
61
61
}
62
62
63
63
64
- HierarchyLocker::~HierarchyLocker ()
64
+ HierarchyLocker::~HierarchyLocker () LOG4CPLUS_NOEXCEPT_FALSE
65
65
{
66
66
try {
67
67
for (LoggerList::iterator it=loggerList.begin (); it!=loggerList.end (); ++it) {
You can’t perform that action at this time.
0 commit comments