incubator-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] Commented: (STDCXX-91) sort() outside std:: namespace in debug builds?
Date Fri, 30 Dec 2005 17:37:03 GMT
    [ http://issues.apache.org/jira/browse/STDCXX-91?page=comments#action_12361437 ] 

Martin Sebor commented on STDCXX-91:
------------------------------------

The sort() and find() (and the vast majority of other generic algorithms) are declared in
the header <algorithm>. See the lib.algorithms clause of the C++ Standard. All standard
algorithms are required to be defined only in namespace std. When called unqualified, the
algorithms may be found by Koenig lookup (when the type of one or more of their arguments
is defined in namespace std).

Do you have a small test case reproducing the problem? The compiler command line is also important
(in case you inadvertently disabled aCC's support for namespaces).

> sort() outside std:: namespace in debug builds?
> -----------------------------------------------
>
>          Key: STDCXX-91
>          URL: http://issues.apache.org/jira/browse/STDCXX-91
>      Project: STDCXX
>         Type: Bug
>   Components: 25. Algorithms
>     Versions: 4.1.3
>  Environment: HP HP-UX 11.23 aCC 6.06
>     Reporter: Duraid Madina
>     Priority: Minor

>
> For some reason I can call sort() when building against 11s, but against 8s (the only
flags really used are -AA and -D_RWSTD_USE_CONFIG), I need to #include <algorithm> and
write std::sort(). Is this intended?

-- 
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