View | Details | Raw Unified | Return to bug 214469
Collapse All | Expand All

(-)b/sysutils/facter/files/patch-vendor_leatherman_logging_src_logging.cc (+19 lines)
Added Link Here
1
(LTH-115) Fix Boost.Log sink initialization with Boost 1.62
2
3
In Boost 1.62, the way sink argument forwarding appears to have changed
4
in such a way that it failed to identify the implicit creation of a
5
color_writer. Switch to explicitly creating the color_writer sink.
6
7
https://github.com/puppetlabs/leatherman/commit/e8196d55ecac7f2bf3aa5cb0aefef0122e63db21
8
9
--- vendor/leatherman/logging/src/logging.cc.orig	2015-11-25 00:14:00 UTC
10
+++ vendor/leatherman/logging/src/logging.cc
11
@@ -72,7 +72,7 @@ namespace leatherman { namespace logging
12
         core->remove_all_sinks();
13
 
14
         using sink_t = sinks::synchronous_sink<color_writer>;
15
-        boost::shared_ptr<sink_t> sink(new sink_t(&dst));
16
+        boost::shared_ptr<sink_t> sink = boost::make_shared<sink_t>(boost::make_shared<color_writer>(&dst));
17
         core->add_sink(sink);
18
 
19
 #if (!defined(__sun) && !defined(_AIX)) || !defined(__GNUC__)

Return to bug 214469