diff options
author | lloyd <[email protected]> | 2010-11-29 22:52:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-11-29 22:52:17 +0000 |
commit | 0e41e0e8d441ff907f092c718db650cda06e2e1a (patch) | |
tree | 8c0df20500bdf601d4378a6000923501a48ad1f3 /checks/bench.cpp | |
parent | 5d4621b745ac529c7df6c4d91e4d2b68bd0325e4 (diff) | |
parent | 65ab36776317f73ddf0f2d3bd6c1c7e35608962f (diff) |
propagate from branch 'net.randombit.botan' (head fc8daa606ab7954eab48778d7236986747b719e4)
to branch 'net.randombit.botan.c++0x' (head 2bf71b0a2e0e468d7eb3631e4ca284234f554729)
Diffstat (limited to 'checks/bench.cpp')
-rw-r--r-- | checks/bench.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/checks/bench.cpp b/checks/bench.cpp index 8502d0232..af61d2edd 100644 --- a/checks/bench.cpp +++ b/checks/bench.cpp @@ -149,6 +149,18 @@ void report_results(const std::string& algo, std::cout << algo; +#if defined(__SUNPRO_CC) + #define REVERSE_ITERATOR_BUG 1 +#elif defined(__GNUC__) && __GNUC__ <= 3 + #define REVERSE_ITERATOR_BUG 1 +#elif defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ == 0) + #define REVERSE_ITERATOR_BUG 1 +#endif + +#ifndef REVERSE_ITERATOR_BUG + #define REVERSE_ITERATOR_BUG 0 +#endif + #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) |