stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-680) use_facet and has_facet are unreliable unless dynamic_cast is available
Date Thu, 05 Jun 2008 17:47:45 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602726#action_12602726
] 

Travis Vitek commented on STDCXX-680:
-------------------------------------

Relevant discussion can be found in the following threads...

[http://www.nabble.com/forum/ViewPost.jtp?post=12502600]
[http://www.nabble.com/forum/ViewPost.jtp?post=16457463]
[http://www.nabble.com/forum/ViewPost.jtp?post=16457463]

If we plan to do as suggested in the last thread, we should defer this to 4.3. Another viable
option would be to enable the -qrtti=all option when compiling the tests via GNUmakefile.tst.
At least this way the build line for the tests includes the option so that the library will
function correctly.

> use_facet and has_facet are unreliable unless dynamic_cast is available
> -----------------------------------------------------------------------
>
>                 Key: STDCXX-680
>                 URL: https://issues.apache.org/jira/browse/STDCXX-680
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 22. Localization
>    Affects Versions: 4.1.2, 4.1.3, 4.1.4, 4.2.0
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>            Priority: Minor
>             Fix For: 4.2.2
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The function that is called by has_facet<>() and use_facet<>() uses _RWSTD_DYNAMIC_CAST
in an attempt to check that the returned locale facet is of the requested type. Unfortunately,
if RTTI is not supported or enabled, that cast becomes unreliable.

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