libstdc++: Avoid including <algorithm> in <filesystem> [PR92546]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Mar 2022 14:36:07 +0000 (14:36 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 17 Mar 2022 17:51:54 +0000 (17:51 +0000)
commit00df7ee4474faca91d3460fe78a88e280c6c1126
treef4ebc5e6ed672e5c9a1ef614337590794c8827b9
parent38ce4489635f2d65de965af3ec5d5c4adf7762d9
libstdc++: Avoid including <algorithm> in <filesystem> [PR92546]

This only affects Windows, but reduces the preprocessed size of
<filesystem> significantly.

libstdc++-v3/ChangeLog:

PR libstdc++/92546
* include/bits/fs_path.h (path::make_preferred): Use
handwritten loop instead of std::replace.
libstdc++-v3/include/bits/fs_path.h