diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-02-23 22:17:11 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-02-23 22:17:11 +0000 |
commit | 9daeb61985f5befd6c0ad534cf51f392c8c07db6 (patch) | |
tree | 1491a281738def12394de8c32dfa660fc8899c1e /cpp/test/Freeze/dbmap/Client.cpp | |
parent | more compat fixes (diff) | |
download | ice-9daeb61985f5befd6c0ad534cf51f392c8c07db6.tar.bz2 ice-9daeb61985f5befd6c0ad534cf51f392c8c07db6.tar.xz ice-9daeb61985f5befd6c0ad534cf51f392c8c07db6.zip |
removing operator[] from Freeze map due to MSVC problems
Diffstat (limited to 'cpp/test/Freeze/dbmap/Client.cpp')
-rw-r--r-- | cpp/test/Freeze/dbmap/Client.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cpp/test/Freeze/dbmap/Client.cpp b/cpp/test/Freeze/dbmap/Client.cpp index be4f3b6d3a6..aca2d3a08ee 100644 --- a/cpp/test/Freeze/dbmap/Client.cpp +++ b/cpp/test/Freeze/dbmap/Client.cpp @@ -52,7 +52,7 @@ populateDB(MAP& m) for(vector<Byte>::const_iterator j = alphabet.begin(); j != alphabet.end(); ++j) { - m[*j] = j - alphabet.begin(); + m.insert(make_pair(*j, j-alphabet.begin())); } } @@ -115,13 +115,6 @@ run(int argc, char* argv[], MAP& m) test(cp != m.end()); test(cp->first == *j && cp->second == j - alphabet.begin()); } - // - // Finally try operator[] - // - for(j = alphabet.begin(); j != alphabet.end(); ++j) - { - test(m[*j] == j - alphabet.begin()); - } test(!m.empty()); test(m.size() == alphabet.size()); |