summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Algorithm.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-05-23 15:15:33 +0000
committerMark Spruiell <mes@zeroc.com>2003-05-23 15:15:33 +0000
commit7416db2cc1030f5a982edd166a64a55d6b42ea7c (patch)
tree4e7f9e816e26cd44a9e16473eadba1a7a946af41 /cpp/include/IceUtil/Algorithm.h
parentAdded unreachable return statement to keep windows compiler happy. (diff)
downloadice-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.h2
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;
}