From 8bf96ed6f5338160e69739066d80184d983c920f Mon Sep 17 00:00:00 2001
From: g0dil <g0dil@wiback.org>
Date: Mon, 23 Jul 2007 16:09:36 +0000
Subject: [PATCH] Add #ifndef DOXYGEN directives to hide
 boost::enable/disable_if constructs from doxygen

---
 Packets/PacketData.hh        | 5 +++++
 Packets/PacketParser.hh      | 5 +++++
 Packets/ParseList.hh         | 4 ++++
 Packets/ParseVec.hh          | 5 +++++
 Socket/ClientSocketHandle.hh | 5 +++++
 Socket/LLAddressing.hh       | 5 +++++
 6 files changed, 29 insertions(+)

diff --git a/Packets/PacketData.hh b/Packets/PacketData.hh
index 9ebe32e89..8a64ec02f 100644
--- a/Packets/PacketData.hh
+++ b/Packets/PacketData.hh
@@ -109,9 +109,14 @@ namespace senf {
         // only academic since what should an empty packet be good for ?
         void insert(iterator pos, byte v);
         void insert(iterator pos, size_type n, byte v);
+#       ifndef DOXYGEN
         template <class InputIterator>
         void insert(iterator pos, InputIterator f, InputIterator l,
                     typename boost::disable_if< boost::is_convertible<InputIterator,size_type> >::type * = 0);
+#       else
+        template <class InputIterator>
+        void insert(iterator pos, InputIterator f, InputIterator l);
+#       endif
 
         void erase(iterator pos);
         void erase(iterator first, iterator last);
diff --git a/Packets/PacketParser.hh b/Packets/PacketParser.hh
index db7a32fbc..644e00d58 100644
--- a/Packets/PacketParser.hh
+++ b/Packets/PacketParser.hh
@@ -299,11 +299,16 @@ namespace senf {
 
         \ingroup packetparser
      */
+#   ifndef DOXYGEN
     template <class Parser>
     typename boost::enable_if< 
         boost::is_base_of<PacketParserBase, Parser>,
         Parser >::type
     operator<<(Parser target, Parser source);
+#   else
+    template <class Parser>
+    Parser operator<<(Parser target, Parser source);
+#   endif
 
     /** \brief Generic parser value assignment
 
diff --git a/Packets/ParseList.hh b/Packets/ParseList.hh
index 8e82f0613..3b7506b81 100644
--- a/Packets/ParseList.hh
+++ b/Packets/ParseList.hh
@@ -327,8 +327,12 @@ namespace senf {
         template <class Value>
         void insert(iterator pos, size_type n, Value const & t);
         template <class ForwardIterator>
+#       ifndef DOXYGEN
         void insert(iterator pos, ForwardIterator f, ForwardIterator l,
                     typename boost::disable_if< boost::is_convertible<ForwardIterator,size_type> >::type * = 0);
+#       else
+        void insert(iterator pos, ForwardIterator f, ForwardIterator l);
+#       endif
 
         void erase(iterator pos, size_type n=1);
         void erase(iterator f, iterator l);
diff --git a/Packets/ParseVec.hh b/Packets/ParseVec.hh
index f979f42b9..11546710d 100644
--- a/Packets/ParseVec.hh
+++ b/Packets/ParseVec.hh
@@ -261,9 +261,14 @@ namespace senf {
         void insert(iterator pos, Value const & t);
         template <class Value>
         void insert(iterator pos, size_type n, Value const & t);
+#       ifndef DOXYGEN
         template <class ForwardIterator>
         void insert(iterator pos, ForwardIterator f, ForwardIterator l,
                     typename boost::disable_if< boost::is_convertible<ForwardIterator,size_type> >::type * = 0);
+#       else
+        template <class ForwardIterator>
+        void insert(iterator pos, ForwardIterator f, ForwardIterator l);
+#       endif
 
         void erase(iterator pos, size_type n=1);
         void erase(iterator f, iterator l);
diff --git a/Socket/ClientSocketHandle.hh b/Socket/ClientSocketHandle.hh
index 2c951b770..2e2372a1b 100644
--- a/Socket/ClientSocketHandle.hh
+++ b/Socket/ClientSocketHandle.hh
@@ -170,9 +170,13 @@ namespace senf {
         */
         std::string  read         (unsigned limit=0);
         template <class ForwardWritableRange>
+#       ifndef DOXYGEN
         typename boost::range_iterator<ForwardWritableRange>::type
                      read         (ForwardWritableRange const & range,
                                    typename boost::disable_if< boost::is_convertible<ForwardWritableRange,unsigned> >::type * = 0);
+#       else
+        typename boost::range_iterator<ForwardWritableRange>::type
+                     read         (ForwardWritableRange const & range);
                                         ///< Read data into range
                                         /**< Read data into the given range. At most
                                              <tt>boost::size(range)</tt> characters are read. The
@@ -185,6 +189,7 @@ namespace senf {
                                                  last read character 
                                              \see \ref read() \n
                                                   <a href="http://www.boost.org/libs/range/index.html">Boost.Range</a> */
+#       endif
         template <class ForwardWritableRange>
         typename boost::range_iterator<ForwardWritableRange>::type
                      read         (ForwardWritableRange & range,
diff --git a/Socket/LLAddressing.hh b/Socket/LLAddressing.hh
index 779312316..41823051e 100644
--- a/Socket/LLAddressing.hh
+++ b/Socket/LLAddressing.hh
@@ -96,9 +96,14 @@ namespace senf {
         // This is for sending packets ..
         // We must use enable_if here, so this constructor will not hide
         // above constructor if passed a plain int or short argument
+#       ifndef DOXYGEN
         template <class ForwardRange>
         explicit LLSocketAddress(ForwardRange const & address, std::string interface="",
                                  typename boost::enable_if_c<! boost::is_integral<ForwardRange>::value >::type * = 0);
+#       else
+        template <class ForwardRange>
+        explicit LLSocketAddress(ForwardRange const & address, std::string interface="");
+#       endif
 
         void clear();
 
-- 
GitLab