BIND 10 master, updated. c3b6b5bbceee256e5415149c90861618a1deb2af Compilation fix: added missing header for distance method.

BIND 10 source code commits bind10-changes at lists.isc.org
Wed May 9 12:58:39 UTC 2012


The branch, master has been updated
       via  c3b6b5bbceee256e5415149c90861618a1deb2af (commit)
      from  fe58fab6bdad19c5ae7191b9ee1e3b5629f1045b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c3b6b5bbceee256e5415149c90861618a1deb2af
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Wed May 9 14:58:16 2012 +0200

    Compilation fix: added missing header for distance method.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/util/buffer.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/buffer.h b/src/lib/util/buffer.h
index 1ceeada..5cd216a 100644
--- a/src/lib/util/buffer.h
+++ b/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)) {}
     //@}
 
     ///



More information about the bind10-changes mailing list