Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
50f42396
Commit
50f42396
authored
Oct 11, 2012
by
Tomek Mrugalski
🛰
Browse files
[master] Warning shown on Debian6 with g++ 4.4 removed.
parent
64bba5b1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/dhcp/lease_mgr.cc
View file @
50f42396
...
@@ -37,8 +37,10 @@ LeaseMgr::LeaseMgr(const std::string& dbconfig) {
...
@@ -37,8 +37,10 @@ LeaseMgr::LeaseMgr(const std::string& dbconfig) {
vector
<
string
>
tokens
;
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
)
{
BOOST_FOREACH
(
std
::
string
token
,
tokens
)
{
size_t
pos
=
token
.
find
(
"="
);
size_t
pos
=
token
.
find
(
"="
);
if
(
pos
!=
string
::
npos
)
{
if
(
pos
!=
string
::
npos
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment