X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2FPacketParser.ih;h=fb3c511cb3c7d90b857f8271a3ddff199e9aec21;hb=9b2b809a695e148c041415c6ff20325e77531a7d;hp=a44fe83a1ba000dfd920159ee5b3e7a57f79b3cb;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Packets/PacketParser.ih b/senf/Packets/PacketParser.ih index a44fe83..fb3c511 100644 --- a/senf/Packets/PacketParser.ih +++ b/senf/Packets/PacketParser.ih @@ -29,7 +29,7 @@ // Custom includes #include -///////////////////////////////ih.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { namespace detail { @@ -38,12 +38,12 @@ namespace detail { # ifndef DOXYGEN - // Use SFINAE to check, if Parser has an integer-valued fixed_bytes member. If not, - // 'Parser_TakeNum' fails and the overload is removed from the overload - // set. + // Use SFINAE to check, if Parser has an integer-valued init_bytes member. If not, + // 'Parser_TakeNum' fails and the overload is removed from the overload + // set. template PacketParserBase::size_type packetParserSize( - Parser p, int, senf::mpl::take_uint * = 0); + Parser p, int, senf::mpl::take_uint * = 0); // An ellipsis is always the worst match. A call 'packetParserSize(p,0) will prefer above // overload if that is not disabled by SFINAE. @@ -61,7 +61,7 @@ namespace detail { // This version of ParserInitBytes_Choose uses 'Parser::init_bytes' to provide 'value' (via // 'boost::integral_constant') template - struct ParserInitBytes_Choose + struct ParserInitBytes_Choose : public boost::integral_constant {}; // ^^-- g++ error signaled here: // error: 'fixed_bytes' is not a member of 'some-class-name' @@ -72,7 +72,7 @@ namespace detail { // Either 'some-class-name' is not the class you wanted to use (it really is no parser) or you // left out either 'init_bytes' or 'fixed_bytes' when defining the parser. This will also // happen, if you forget to call 'SENF_PARSER_FINALIZE()' when defining a composite parser. - /////////////////////////////////////////////////////////////////////////////////////////////// + //-///////////////////////////////////////////////////////////////////////////////////////////// // If Parser::init_bytes is not defined, this specialization is chosen which instead uses // 'Parser::fixed_bytes' @@ -100,7 +100,7 @@ namespace detail { }} -///////////////////////////////ih.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #endif