diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-09-27 15:53:04 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-09-27 23:55:09 +0100 |
commit | 16491e137c47ad36f9d73f070978841f1e8ca95d (patch) | |
tree | 8eddfbfc82d6d910842f798222a1d14cd136381c /gcc/expr.cc | |
parent | 7040c207baa6b5d5f6065a47dd3559f3d3974a1b (diff) | |
download | gcc-16491e137c47ad36f9d73f070978841f1e8ca95d.zip gcc-16491e137c47ad36f9d73f070978841f1e8ca95d.tar.gz gcc-16491e137c47ad36f9d73f070978841f1e8ca95d.tar.bz2 |
libstdc++: Refactor experimental::filesystem::path string conversions
I noticed a -Wc++17-extensions warning due to use of if-constexpr in
std::experimental::filesystem::path, which was not protected by
diagnostic pragmas to disable the warning.
While adding the pragmas I noticed that other places in the same file
use tag dispatching and multiple overloads instead of if-constexpr.
Since we're already using it in that file, we might as well just use it
everywhere.
libstdc++-v3/ChangeLog:
* include/experimental/bits/fs_path.h (path::_Cvt): Refactor to
use if-constexpr.
(path::string(const Allocator&)): Likewise.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions