Fix documentation build under maverick (doxygen 1.7.1)
[senf.git] / senf / Packets / DefaultBundle / ListOptionTypeParser.cti
index 81266cf..2dad6d2 100644 (file)
@@ -28,9 +28,9 @@
 // Custom includes
 
 #define prefix_ inline
-///////////////////////////////cti.p///////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::detail::ListOptionTypeParser_Policy<ElementParser,AuxPolicy>
 
 template <class ElementParser, class AuxPolicy>
@@ -80,7 +80,7 @@ senf::detail::ListOptionTypeParser_Policy<ElementParser,AuxPolicy>::init(data_it
     AuxPolicy::aux(0, i, s);
 }
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::detail::ListOptionTypeParser_Policy<ElementParser,BytesParser>
 
 //constructor
@@ -108,7 +108,11 @@ construct(container_type & c)
     realAux_ = (AuxPolicy::aux(i, c.state()) * 8) + 6;
     safe_data_iterator e = i + realAux_;
     for (n_ = 0; i != e;) {
-        unsigned int elByte = senf::bytes(ElementParser(i, c.state()));
+        size_type elByte;
+        if (i[0] == 0u)
+            elByte = 1;
+        else
+            elByte = senf::bytes(ElementParser(i, c.state()));
         if (((i + elByte) == e) && (i[0] == 0u || i[0] == 1u)) { //check weather last element is padding or not
             realAux_ -= std::distance(i, e);
             c.data().erase(i, e); //delete padding
@@ -278,7 +282,7 @@ raw(container_type const & c, iterator_data const & d)
     return container_type::iterator::get(d).i();
 }
 
-///////////////////////////////cti.e///////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 
 \f