Browse Source

Compilation fix: added missing header for distance method.

Tomek Mrugalski 13 years ago
parent
commit
c3b6b5bbce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/util/buffer.h

+ 2 - 2
src/lib/util/buffer.h

@@ -18,7 +18,7 @@
 #include <stdlib.h>
 #include <cstring>
 #include <vector>
-
+#include <iterator>
 #include <string.h>
 
 #include <stdint.h>
@@ -111,7 +111,7 @@ public:
     /// @param end iterator to end of the vector
     InputBuffer(std::vector<uint8_t>::const_iterator begin,
                 std::vector<uint8_t>::const_iterator end) :
-        position_(0), data_(&(*begin)), len_(distance(begin, end)) {}
+        position_(0), data_(&(*begin)), len_(std::distance(begin, end)) {}
     //@}
 
     ///