Packets/80211Bundle: Read-only radiotap reimplementation
[senf.git] / senf / Packets / PacketParser.ih
index 00df8a8..c55be7e 100644 (file)
@@ -27,7 +27,7 @@
 #define IH_SENF_Packets_PacketParser_ 1
 
 // Custom includes
-#include "../Utils/mpl.hh"
+#include <senf/Utils/mpl.hh>
 
 ///////////////////////////////ih.p////////////////////////////////////////
 
@@ -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<Parser::fixed_bytes>' 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<Parser::init_bytes>' fails and the overload is removed from the overload
+    // set.
     template <class Parser>
     PacketParserBase::size_type packetParserSize(
-        Parser p, int, senf::mpl::take_uint<Parser::fixed_bytes> * = 0);
+        Parser p, int, senf::mpl::take_uint<Parser::init_bytes> * = 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 <class Parser, unsigned _>
-    struct ParserInitBytes_Choose 
+    struct ParserInitBytes_Choose
         : public boost::integral_constant<PacketParserBase::size_type, Parser::init_bytes> {};
     // ^^-- g++ error signaled here:
     //    error: 'fixed_bytes' is not a member of 'some-class-name'