Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-680

use_facet and has_facet are unreliable unless dynamic_cast is available

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.1.2, 4.1.3, 4.1.4, 4.2.0
    • Fix Version/s: 4.2.2
    • Component/s: 22. Localization
    • Labels:
      None
    • Severity:
      Incorrect Behavior

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vitek Travis Vitek
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h