stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-234) std::distance() declaration incorrect
Date Wed, 28 Jun 2006 19:39:29 GMT
std::distance() declaration incorrect
-------------------------------------

         Key: STDCXX-234
         URL: http://issues.apache.org/jira/browse/STDCXX-234
     Project: C++ Standard Library
        Type: Bug

  Components: 24. Iterators  
    Versions: 4.1.2, 4.1.3    
 Environment: all
    Reporter: Martin Sebor


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 <dhandly@hpcllmx.cup.hp.com>
To: sebor@roguewave.com
CC: dhandly@hpcllmx.cup.hp.com, wanc@cup.hp.com


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:
    template<class InputIterator>
        typename iterator_traits<InputIterator>::difference_type
           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).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message