fs_path.h
35.9 KB
-
libstdc++: Remove incorrect static specifiers · 415d3cd7
These functions were originally static members of the path class, but the 'static' specifiers were not removed when they were moved to namespace scope. This causes ODR violations when the functions are called from functions defined in the header. Change them to 'inline' instead. Backport from mainline 2020-05-23 Jonathan Wakely <jwakely@redhat.com> * include/bits/fs_path.h (__detail::_S_range_begin) (__detail::_S_range_end): Remove unintentional static specifiers. * include/experimental/bits/fs_path.h (__detail::_S_range_begin) (__detail::_S_range_end): Likewise.
Jonathan Wakely committed