aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-07 19:02:34 +0000
committerlloyd <[email protected]>2010-09-07 19:02:34 +0000
commitc574bbeb6c41b68ca19a09a628cf69dcef3dd5ba (patch)
tree6c7516a422bfd7e5a5ef0eb0a29cb7871e092cd1
parente6389814d3df7aaa8305d36c82640c89e2b7bb0b (diff)
My version of Sun Studio has the same reverse iterator bug as GCC 3
-rw-r--r--checks/bench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp
index 4e39bdf70..e62da7e6f 100644
--- a/checks/bench.cpp
+++ b/checks/bench.cpp
@@ -146,7 +146,7 @@ void report_results(const std::string& algo,
std::cout << algo;
-#if defined(__GNUC__) && __GNUC__ <= 3
+#if (defined(__GNUC__) && __GNUC__ <= 3) || defined(__SUNPRO_CC)
// Work around GCC 3.x bug, reverse iterators don't work
for(std::map<double, std::string>::const_iterator i = results.begin(); i != results.end(); ++i)
#else