minor fixes for clang++
[senf.git] / senf / Packets / 80211Bundle / RadiotapPacket.hh
index 9e0a795..04e1f9c 100644 (file)
@@ -58,7 +58,7 @@ namespace senf {
 
         SENF_PARSER_FINALIZE ( RadiotapPacketParser_Flags );
 
-        friend class RadiotapPacketParser;
+        friend struct RadiotapPacketParser;
     };
 
     /** \brief Parse in Radiotap Header channel frequency and flag field
@@ -271,6 +271,7 @@ namespace senf {
         static const size_type fixed_bytes = 0; // hide this member, just in case
 
         typedef boost::array<size_type,MAX_INDEX+2> OffsetTable;
+        typedef std::map<boost::uint32_t, OffsetTable> OffsetMap;
 
         //-////////////////////////////////////////////////////////////////////////
         // Offset table handling
@@ -296,9 +297,10 @@ namespace senf {
         void updatePresentFlags(boost::uint32_t flags);
         void insertRemoveBytes(unsigned from, unsigned to, int bytes);
 
+        static OffsetMap offsetMap_;
         OffsetTable const * currentTable_;
 
-        friend class RadiotapPacketType;
+        friend struct RadiotapPacketType;
     };
 
     /** \brief Radiotap packet