Skip to content
Snippets Groups Projects
Commit b3ecf0eb authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

BugID: 992

Fixed coding bug which only surfaced when compiling with -D_GLIBCXX_DEBUG.
parent 8b67f7bc
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,8 @@ bool testSplit() ...@@ -64,7 +64,8 @@ bool testSplit()
bool testCompare(bool nocase) bool testCompare(bool nocase)
{ {
set<string, StringUtil::Compare> typedef set<string, StringUtil::Compare> set_type;
set_type
s(nocase ? StringUtil::Compare::NOCASE : StringUtil::Compare::NORMAL); s(nocase ? StringUtil::Compare::NOCASE : StringUtil::Compare::NORMAL);
s.insert("Alfons"); s.insert("Alfons");
s.insert("aap"); s.insert("aap");
...@@ -74,7 +75,7 @@ bool testCompare(bool nocase) ...@@ -74,7 +75,7 @@ bool testCompare(bool nocase)
s.insert("chocolade"); s.insert("chocolade");
if (nocase) cout << "=== Strings sorted NOCASE ===" << endl; if (nocase) cout << "=== Strings sorted NOCASE ===" << endl;
else cout << "=== Strings sorted NORMAL ===" << endl; else cout << "=== Strings sorted NORMAL ===" << endl;
for (set<string>::const_iterator it = s.begin(); it != s.end(); ++it) { for (set_type::const_iterator it = s.begin(); it != s.end(); ++it) {
cout << *it << endl; cout << *it << endl;
} }
cout << endl; cout << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment