Skip to content

Commit 352058e

Browse files
committed
boost: drop boost dependency in utilstrencodings.cpp
1 parent e1c9467 commit 352058e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utilstrencodings.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#include <errno.h>
1111
#include <limits>
12-
13-
#include <boost/foreach.hpp>
12+
#include <cstdlib>
13+
#include <cstring>
1414

1515
using namespace std;
1616

@@ -53,9 +53,9 @@ signed char HexDigit(char c)
5353

5454
bool IsHex(const string& str)
5555
{
56-
BOOST_FOREACH(char c, str)
56+
for(std::string::const_iterator it(str.begin()); it != str.end(); ++it)
5757
{
58-
if (HexDigit(c) < 0)
58+
if (HexDigit(*it) < 0)
5959
return false;
6060
}
6161
return (str.size() > 0) && (str.size()%2 == 0);

0 commit comments

Comments
 (0)