diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Freeze/dbmap/Client.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/test/Freeze/dbmap/Client.cpp b/cpp/test/Freeze/dbmap/Client.cpp index a9ef7998f0c..4cde77d629a 100644 --- a/cpp/test/Freeze/dbmap/Client.cpp +++ b/cpp/test/Freeze/dbmap/Client.cpp @@ -272,8 +272,12 @@ run(int argc, char* argv[], MAP& m) // typename MAP::value_type i3('a', 7); - - pair<typename MAP::iterator, bool> insertResult = m.insert(i3); +
+#if defined(_MSC_VER) && (_MSC_VER < 1300) + pair<MAP::iterator, bool> insertResult = m.insert(i3);
+#else
+ pair<typename MAP::iterator, bool> insertResult = m.insert(i3);
+#endif test(insertResult.first == m.find('a')); test(insertResult.first->second == 0); test(insertResult.second == false); |