diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-05-23 15:15:33 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-05-23 15:15:33 +0000 |
commit | 7416db2cc1030f5a982edd166a64a55d6b42ea7c (patch) | |
tree | 4e7f9e816e26cd44a9e16473eadba1a7a946af41 /cpp/include/IceUtil/Algorithm.h | |
parent | Added unreachable return statement to keep windows compiler happy. (diff) | |
download | ice-7416db2cc1030f5a982edd166a64a55d6b42ea7c.tar.bz2 ice-7416db2cc1030f5a982edd166a64a55d6b42ea7c.tar.xz ice-7416db2cc1030f5a982edd166a64a55d6b42ea7c.zip |
bug fix for Sun CC
Diffstat (limited to 'cpp/include/IceUtil/Algorithm.h')
-rw-r--r-- | cpp/include/IceUtil/Algorithm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/IceUtil/Algorithm.h b/cpp/include/IceUtil/Algorithm.h index 167209c5a30..71386cc30d5 100644 --- a/cpp/include/IceUtil/Algorithm.h +++ b/cpp/include/IceUtil/Algorithm.h @@ -26,7 +26,7 @@ template<class InputIterator, class Predicate> inline typename InputIterator::difference_type ice_count_if(InputIterator first, InputIterator last, Predicate pred) { - InputIterator::difference_type result; + InputIterator::difference_type result = 0; std::count_if(first, last, pred, result); return result; } |