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

Martin Sebor updated STDCXX-680:
--------------------------------

           Description: 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.  (was: 
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.)
              Priority: Minor  (was: Major)
     Affects Version/s: 4.1.2
                        4.1.3
                        4.1.4
         Fix Version/s: 4.3
    Remaining Estimate: 2h
     Original Estimate: 2h

This has been an issue in all released versions.
Let's try to make a decision how to deal with this in 4.3.

> 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
>            Priority: Minor
>             Fix For: 4.3
>
>   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.

Reply via email to