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

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.1.2, 4.1.3, 4.1.4, 4.2.0
    • 4.2.2
    • 22. Localization
    • None
    • 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

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