From: Tomek Mrugalski Date: Thu, 11 Oct 2012 14:07:32 +0000 (+0200) Subject: [master] Warning shown on Debian6 with g++ 4.4 removed. X-Git-Tag: trac2402_base~15^2~26^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50f42396efa039096dd74c13425d1a2bc0efc978;p=thirdparty%2Fkea.git [master] Warning shown on Debian6 with g++ 4.4 removed. --- diff --git a/src/lib/dhcp/lease_mgr.cc b/src/lib/dhcp/lease_mgr.cc index 9352c9bf8c..d09bd583c0 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 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) {