[PATCH] libstdc++: Check feature test macro for std::string_view in

2025-04-05 Thread Jonathan Wakely
We can use the __glibcxx_string_view macro to guard the uses of std::string_view in , instead of just checking the value of __cplusplus. It makes no practical difference because __glibcxx_string_view is defined for C++17 and up, but it makes it clear to readers that the lines guarded by that macro

Re: [PATCH] libstdc++: Check feature test macro for std::string_view in

2025-04-04 Thread Tomasz Kaminski
On Fri, Apr 4, 2025 at 11:08 AM Jonathan Wakely wrote: > We can use the __glibcxx_string_view macro to guard the uses of > std::string_view in , instead of just checking the value of > __cplusplus. It makes no practical difference because > __glibcxx_string_view is defined for C++17 and up, but i