summarylogtreecommitdiffstats
path: root/0001-fix-for-a-bug-in-gcc-that-won-t-let-rapidxml-compile.patch
blob: 715af15458fb5291ce1865b6d117757ae8192f99 (plain)
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
From 2cf47bb8fb1de71bb2d2e059c15a30ffa4ca4cd6 Mon Sep 17 00:00:00 2001
From: Ferdinand Niedermann <ferdinand.niedermann@gmail.com>
Date: Sat, 21 Sep 2013 01:55:58 +0200
Subject: [PATCH] fix for a bug in gcc that won't let rapidxml compile on clang

---
 rapidxml_print.hpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/RapidXml/rapidxml_print.hpp b/RapidXml/rapidxml_print.hpp
index d03d5f5..7ef305e 100755
--- a/RapidXml/rapidxml_print.hpp
+++ b/RapidXml/rapidxml_print.hpp
@@ -102,6 +102,20 @@ namespace rapidxml
         ///////////////////////////////////////////////////////////////////////////
         // Internal printing operations
     
+        // =====================================
+        // fix for clang for this bug in gcc and others: http://sourceforge.net/p/rapidxml/bugs/16/
+
+        template<class OutIt, class Ch> inline OutIt print_children(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+        template<class OutIt, class Ch> inline OutIt print_element_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+        template<class OutIt, class Ch> inline OutIt print_data_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+        template<class OutIt, class Ch> inline OutIt print_cdata_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+        template<class OutIt, class Ch> inline OutIt print_declaration_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+        template<class OutIt, class Ch> inline OutIt print_comment_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+        template<class OutIt, class Ch> inline OutIt print_doctype_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+        template<class OutIt, class Ch> inline OutIt print_pi_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
+
+        // =====================================
+
         // Print node
         template<class OutIt, class Ch>
         inline OutIt print_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
-- 
1.8.4