From: g0dil Date: Mon, 23 Jul 2007 16:09:36 +0000 (+0000) Subject: Add #ifndef DOXYGEN directives to hide boost::enable/disable_if constructs from doxygen X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=96d591f9024bc536e0a643b40c2bf243241d342d;p=senf.git Add #ifndef DOXYGEN directives to hide boost::enable/disable_if constructs from doxygen git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@342 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/PacketData.hh b/Packets/PacketData.hh index 9ebe32e..8a64ec0 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 void insert(iterator pos, InputIterator f, InputIterator l, typename boost::disable_if< boost::is_convertible >::type * = 0); +# else + template + 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 db7a32f..644e00d 100644 --- a/Packets/PacketParser.hh +++ b/Packets/PacketParser.hh @@ -299,11 +299,16 @@ namespace senf { \ingroup packetparser */ +# ifndef DOXYGEN template typename boost::enable_if< boost::is_base_of, Parser >::type operator<<(Parser target, Parser source); +# else + template + Parser operator<<(Parser target, Parser source); +# endif /** \brief Generic parser value assignment diff --git a/Packets/ParseList.hh b/Packets/ParseList.hh index 8e82f06..3b7506b 100644 --- a/Packets/ParseList.hh +++ b/Packets/ParseList.hh @@ -327,8 +327,12 @@ namespace senf { template void insert(iterator pos, size_type n, Value const & t); template +# ifndef DOXYGEN void insert(iterator pos, ForwardIterator f, ForwardIterator l, typename boost::disable_if< boost::is_convertible >::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 f979f42..1154671 100644 --- a/Packets/ParseVec.hh +++ b/Packets/ParseVec.hh @@ -261,9 +261,14 @@ namespace senf { void insert(iterator pos, Value const & t); template void insert(iterator pos, size_type n, Value const & t); +# ifndef DOXYGEN template void insert(iterator pos, ForwardIterator f, ForwardIterator l, typename boost::disable_if< boost::is_convertible >::type * = 0); +# else + template + 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 2c951b7..2e2372a 100644 --- a/Socket/ClientSocketHandle.hh +++ b/Socket/ClientSocketHandle.hh @@ -170,9 +170,13 @@ namespace senf { */ std::string read (unsigned limit=0); template +# ifndef DOXYGEN typename boost::range_iterator::type read (ForwardWritableRange const & range, typename boost::disable_if< boost::is_convertible >::type * = 0); +# else + typename boost::range_iterator::type + read (ForwardWritableRange const & range); ///< Read data into range /**< Read data into the given range. At most boost::size(range) characters are read. The @@ -185,6 +189,7 @@ namespace senf { last read character \see \ref read() \n Boost.Range */ +# endif template typename boost::range_iterator::type read (ForwardWritableRange & range, diff --git a/Socket/LLAddressing.hh b/Socket/LLAddressing.hh index 7793123..4182305 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 explicit LLSocketAddress(ForwardRange const & address, std::string interface="", typename boost::enable_if_c::value >::type * = 0); +# else + template + explicit LLSocketAddress(ForwardRange const & address, std::string interface=""); +# endif void clear();