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] Closed: (STDCXX-234) std::distance() declaration incorrect
Date Thu, 06 Sep 2007 00:33:33 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor closed STDCXX-234.
-------------------------------

    Resolution: Fixed

Fixed as follows:http://svn.apache.org/viewvc?rev=573113&view=rev
Regression test added: http://svn.apache.org/viewvc?rev=573119&view=rev
Closed.


> std::distance() declaration incorrect
> -------------------------------------
>
>                 Key: STDCXX-234
>                 URL: https://issues.apache.org/jira/browse/STDCXX-234
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 24. Iterators
>    Affects Versions: 4.1.2, 4.1.3
>         Environment: all
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>             Fix For: 4.2
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message