Guest User

Untitled

a guest
Feb 4th, 2015
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.11 KB | None | 0 0
  1. From 2cf47bb8fb1de71bb2d2e059c15a30ffa4ca4cd6 Mon Sep 17 00:00:00 2001
  2. From: Ferdinand Niedermann <ferdinand.niedermann@gmail.com>
  3. Date: Sat, 21 Sep 2013 01:55:58 +0200
  4. Subject: [PATCH] fix for a bug in gcc that won't let rapidxml compile on clang
  5.  
  6. ---
  7. rapidxml_print.hpp | 14 ++++++++++++++
  8. 1 file changed, 14 insertions(+)
  9.  
  10. diff --git a/rapidxml-1.13/rapidxml_print.hpp b/rapidxml-1.13/rapidxml_print.hpp
  11. index d03d5f5..7ef305e 100755
  12. --- a/rapidxml-1.13/rapidxml_print.hpp
  13. +++ b/rapidxml-1.13/rapidxml_print.hpp
  14. @@ -102,6 +102,20 @@ namespace rapidxml
  15.         ///////////////////////////////////////////////////////////////////////////
  16.         // Internal printing operations
  17.    
  18. +        // =====================================
  19. +        // fix for clang for this bug in gcc and others: http://sourceforge.net/p/rapidxml/bugs/16/
  20. +
  21. +        template<class OutIt, class Ch> inline OutIt print_children(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  22. +        template<class OutIt, class Ch> inline OutIt print_element_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  23. +        template<class OutIt, class Ch> inline OutIt print_data_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  24. +        template<class OutIt, class Ch> inline OutIt print_cdata_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  25. +        template<class OutIt, class Ch> inline OutIt print_declaration_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  26. +        template<class OutIt, class Ch> inline OutIt print_comment_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  27. +        template<class OutIt, class Ch> inline OutIt print_doctype_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  28. +        template<class OutIt, class Ch> inline OutIt print_pi_node(OutIt out, const xml_node<Ch> *node, int flags, int indent);
  29. +
  30. +        // =====================================
  31. +
  32.         // Print node
  33.         template<class OutIt, class Ch>
  34.         inline OutIt print_node(OutIt out, const xml_node<Ch> *node, int flags, int indent)
  35. --
  36. 1.8.4
Advertisement
Add Comment
Please, Sign In to add comment