diff options
author | lloyd <[email protected]> | 2010-09-07 19:02:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-07 19:02:34 +0000 |
commit | c574bbeb6c41b68ca19a09a628cf69dcef3dd5ba (patch) | |
tree | 6c7516a422bfd7e5a5ef0eb0a29cb7871e092cd1 | |
parent | e6389814d3df7aaa8305d36c82640c89e2b7bb0b (diff) |
My version of Sun Studio has the same reverse iterator bug as GCC 3
-rw-r--r-- | checks/bench.cpp | 2 |
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 |