summaryrefslogtreecommitdiff
path: root/tests/test_accum_iter.cc
diff options
context:
space:
mode:
authorElaine Xiong <elaine.xiong@sun.com>2008-02-28 16:50:08 +0000
committerMurray Cumming <murrayc@src.gnome.org>2008-02-28 16:50:08 +0000
commit5bfbc450779af3bd8f9d0ed7dc5479cd9775ea1e (patch)
treecb79f27d0b5ae5599f76cdcc1b873e5158974a70 /tests/test_accum_iter.cc
parent18cd8e4271761c2bb411a8b4c984268838d5e219 (diff)
downloadsigc++-5bfbc450779af3bd8f9d0ed7dc5479cd9775ea1e.tar.gz
Add ifdefs around uses of reverse_iterator to really fix the build with
2008-02-28 Elaine Xiong <elaine.xiong@sun.com> * sigc++/macros/signal.h.m4: * tests/test_accum_iter.cc: Add ifdefs around uses of reverse_iterator to really fix the build with recent versions of Sun CC. Bug #302098. svn path=/trunk/; revision=294
Diffstat (limited to 'tests/test_accum_iter.cc')
-rw-r--r--tests/test_accum_iter.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_accum_iter.cc b/tests/test_accum_iter.cc
index 462c2ec..ef8ab13 100644
--- a/tests/test_accum_iter.cc
+++ b/tests/test_accum_iter.cc
@@ -17,7 +17,11 @@ struct min_accum
typedef T result_type;
template<class I>
+#ifndef SIGC_HAVE_SUN_REVERSE_ITERATOR
typename std::iterator_traits<I>::value_type operator()(I i1, I i2)
+#else
+ typename I::value_type operator()(I i1, I i2)
+#endif
{
return *std::min_element(i1, i2);
}