You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/09/06 02:17:34 UTC
svn commit: r573113 - /incubator/stdcxx/trunk/include/rw/_iterbase.h
Author: sebor
Date: Wed Sep 5 17:17:34 2007
New Revision: 573113
URL: http://svn.apache.org/viewvc?rev=573113&view=rev
Log:
2007-09-06 Martin Sebor <se...@roguewave.com>
STDCXX-234
* _iterbase.h (distance): Corrected function signature according
to the spec.
Modified:
incubator/stdcxx/trunk/include/rw/_iterbase.h
Modified: incubator/stdcxx/trunk/include/rw/_iterbase.h
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/rw/_iterbase.h?rev=573113&r1=573112&r2=573113&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/rw/_iterbase.h (original)
+++ incubator/stdcxx/trunk/include/rw/_iterbase.h Wed Sep 5 17:17:34 2007
@@ -22,22 +22,23 @@
*
***************************************************************************
*
- * Copyright 2005-2006 The Apache Software Foundation or its licensors,
- * as applicable.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at
*
- * Copyright 1994-2006 Rogue Wave Software.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 1994-2007 Rogue Wave Software, Inc.
*
**************************************************************************/
@@ -337,7 +338,7 @@
// 24.3.4, p4
template <class _ForwardIterator>
inline _TYPENAME iterator_traits<_ForwardIterator>::difference_type
-distance (const _ForwardIterator &__first, const _ForwardIterator &__last)
+distance (_ForwardIterator __first, _ForwardIterator __last)
{
_TYPENAME iterator_traits<_ForwardIterator>::difference_type __n = 0;