BIND 10 master, updated. 50f42396efa039096dd74c13425d1a2bc0efc978 [master] Warning shown on Debian6 with g++ 4.4 removed.
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Oct 11 14:07:57 UTC 2012
The branch, master has been updated
via 50f42396efa039096dd74c13425d1a2bc0efc978 (commit)
from 64bba5b1c6a4155e8179217c10e998fbe3c2822c (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 50f42396efa039096dd74c13425d1a2bc0efc978
Author: Tomek Mrugalski <tomasz at isc.org>
Date: Thu Oct 11 16:07:32 2012 +0200
[master] Warning shown on Debian6 with g++ 4.4 removed.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/lease_mgr.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/lease_mgr.cc b/src/lib/dhcp/lease_mgr.cc
index 9352c9b..d09bd58 100644
--- a/src/lib/dhcp/lease_mgr.cc
+++ b/src/lib/dhcp/lease_mgr.cc
@@ -37,8 +37,10 @@ LeaseMgr::LeaseMgr(const std::string& dbconfig) {
vector<string> tokens;
- boost::split(tokens, dbconfig, boost::is_any_of("\t "));
-
+ // we need to pass a string to is_any_of, not just char *. Otherwise there
+ // are cryptic warnings on Debian6 running g++ 4.4 in /usr/include/c++/4.4
+ // /bits/stl_algo.h:2178 "array subscript is above array bounds"
+ boost::split(tokens, dbconfig, boost::is_any_of( string("\t ") ));
BOOST_FOREACH(std::string token, tokens) {
size_t pos = token.find("=");
if (pos != string::npos) {
More information about the bind10-changes
mailing list