Re: [PATCH] Cleanup std::erase_if for std::vector implementation

2025-10-01 Thread François Dumont
Before pushing I checked other std::erase_if and std::erase implementations, so this new patch.     libstdc++: Avoid _GLIBCXX20_CONSTEXPR in C++ >= 20 code sections     libstdc++-v3/ChangeLog:             * include/std/vector (std::erase_if, std::erase): Replace _GLIBCXX20_CONSTEXPR        

Re: [PATCH] Cleanup std::erase_if for std::vector implementation

2025-10-01 Thread Jonathan Wakely
On Wed, 1 Oct 2025 at 06:16, François Dumont wrote: > > Hi > > Minor patch, just need to confirm that constexpr implies inline, no ? That's correct. This is a good cleanup. > > libstdc++: Avoid _GLIBCXX20_CONSTEXPR in C++ >= 20 code section > > libstdc++-v3/ChangeLog: > >

[PATCH] Cleanup std::erase_if for std::vector implementation

2025-09-30 Thread François Dumont
Hi Minor patch, just need to confirm that constexpr implies inline, no ?     libstdc++: Avoid _GLIBCXX20_CONSTEXPR in C++ >= 20 code section     libstdc++-v3/ChangeLog:             * include/std/vector (std::erase_if): Replace _GLIBCXX20_CONSTEXPR             with 'constexpr' and remove impl