aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-05-22 16:49:31 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-08-23 13:39:36 +0100
commit952e67c0d131300f263d729a0fe07bc3655dad27 (patch)
tree459afe0f1f3a97870232c73622b26e70035f1e5f /gcc
parent8cf51d7516b92b352c358c14ab4e456ae53c3371 (diff)
downloadgcc-952e67c0d131300f263d729a0fe07bc3655dad27.zip
gcc-952e67c0d131300f263d729a0fe07bc3655dad27.tar.gz
gcc-952e67c0d131300f263d729a0fe07bc3655dad27.tar.bz2
libstdc++: Optimize __try_use_facet for const types
LWG 436 confirmed that const-qualified types are valid arguments for Facet template parameters (but volatile-qualified types are not). Use the fast path in std::use_facet and std::has_facet for const T as well as T. libstdc++-v3/ChangeLog: * include/bits/locale_classes.tcc (__try_use_facet): Also avoid dynamic_cast for const-qualified facet types.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions