You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Duraid Madina (JIRA)" <ji...@apache.org> on 2005/12/30 15:58:00 UTC

[jira] Created: (STDCXX-91) sort() outside std:: namespace in debug builds?

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


[jira] Closed: (STDCXX-91) sort() outside std:: namespace in debug builds?

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-91?page=all ]
     
Martin Sebor closed STDCXX-91:
------------------------------

    Resolution: Cannot Reproduce

Closed at submitter's request.

> 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
>     Assignee: Martin Sebor
>     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


[jira] Commented: (STDCXX-91) sort() outside std:: namespace in debug builds?

Posted by "Duraid Madina (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/STDCXX-91?page=comments#action_12362535 ] 

Duraid Madina commented on STDCXX-91:
-------------------------------------

I still think that there may be some different behaviour in debug vs. non-debug builds of stdcxx, but when trying to build a small test case, the problem vanished. It's probably my fault, so if you can close this issue for now (sorry!) I will comment again if it does turn out to be a real problem.

Sorry for the noise!


> 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


[jira] Commented: (STDCXX-91) sort() outside std:: namespace in debug builds?

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Assigned: (STDCXX-91) sort() outside std:: namespace in debug builds?

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-91?page=all ]

Martin Sebor reassigned STDCXX-91:
----------------------------------

    Assign To: Martin Sebor

> 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
>     Assignee: Martin Sebor
>     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


[jira] Commented: (STDCXX-91) sort() outside std:: namespace in debug builds?

Posted by "Duraid Madina (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/STDCXX-91?page=comments#action_12361433 ] 

Duraid Madina commented on STDCXX-91:
-------------------------------------

ditto find()


> 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