Moved from the Rogue Wave bug tracking database:
***Created By: sebor @ Jul 01, 2000 02:17:12 PM***
Subject: Wrong definition for template distance()
Date: Sat, 1 Jul 2000 00:28:16 -0700
From: Dennis Handly <firstname.lastname@example.org>
CC: email@example.com, firstname.lastname@example.org
I just noticed Perennial test Sec24/2/P24003.C is failing.
It seems that prototype for std::distance() is incorrect:
template <class _ForwardIterator>
inline _TYPENAME iterator_traits<_ForwardIterator>::difference_type
distance (const ForwardIterator &first, const _ForwardIterator &_last)
The correct version is 24.3.4:
distance(InputIterator first, InputIterator last);
Did you change this because of a compiler problem you wrote about??
> The following is a list of problems I have encountered while porting
> the lib to aCC 3.14.10:
> 1) JAGac61365 (aCC 3.14.10 not dropping top-level cv-qualifiers during
> template argument deduction). This causes compilation errors in
> std::distance<>() (many tests fail to compile).