Package: liborigin2 / 2:20110117-6

10_fix-gcc-6_FTBFS.patch Patch series | download
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
Description: Fix FTBFS with gcc-6
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/811837
Last-Update: 2016-08-07

--- liborigin2-20110117.orig/OriginFile.h
+++ liborigin2-20110117/OriginFile.h
@@ -69,7 +69,7 @@ public:
 
 private:
 	unsigned int fileVersion, buildVersion;
-	auto_ptr<OriginParser> parser;
+	shared_ptr<OriginParser> parser;
 };
 
 #endif // ORIGIN_FILE_H
--- liborigin2-20110117.orig/logging.hpp
+++ liborigin2-20110117/logging.hpp
@@ -347,7 +347,7 @@ namespace boost {
       sink(std::ostream *s, level_t max_log_level = 1)
       {
         if (s)
-          if (*s == std::cout || *s == std::cerr || *s == std::clog)
+          if (s == &std::cout || s == &std::cerr || s == &std::clog)
             m_output_stream.reset(s, null_deleter());
           else
             m_output_stream.reset(s);