You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2022/12/16 02:38:52 UTC

[logging-log4cxx] branch LOGCXX-567 updated: only use boost if we have it

This is an automated email from the ASF dual-hosted git repository.

rmiddleton pushed a commit to branch LOGCXX-567
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/LOGCXX-567 by this push:
     new c1a2672d only use boost if we have it
c1a2672d is described below

commit c1a2672d994859f2dd808f7a955496fd26ad8e88
Author: Robert Middleton <ro...@rm5248.com>
AuthorDate: Thu Dec 15 21:38:46 2022 -0500

    only use boost if we have it
---
 src/main/cpp/loggingevent.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/cpp/loggingevent.cpp b/src/main/cpp/loggingevent.cpp
index b6f23671..25f5a870 100644
--- a/src/main/cpp/loggingevent.cpp
+++ b/src/main/cpp/loggingevent.cpp
@@ -81,6 +81,7 @@ struct LoggingEvent::LoggingEventPrivate
 	{
 	}
 
+#if LOG4CXX_HAS_BOOST_STACKTRACE
 	LoggingEventPrivate(
 		const LogString& logger1, const LevelPtr& level1,
 		const LogString& message1, const LocationInfo& locationInfo1,
@@ -101,6 +102,7 @@ struct LoggingEvent::LoggingEventPrivate
 		stacktrace(std::make_unique<boost::stacktrace::stacktrace>(stacktrace))
 	{
 	}
+#endif
 
 	~LoggingEventPrivate()
 	{