2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

Compilation fix: added missing header for distance method.

This commit is contained in:
Tomek Mrugalski
2012-05-09 14:58:16 +02:00
parent fe58fab6bd
commit c3b6b5bbce

View File

@@ -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)) {}
//@}
///