Re: [PATCH 1/2] libstdc++: Add _M_key_compare helper to associative containers

2025-04-25 Thread Jonathan Wakely
On Fri, 25 Apr 2025 at 09:13, Tomasz Kaminski wrote: > > > > On Fri, Apr 25, 2025 at 12:19 AM Jonathan Wakely wrote: >> >> In r10-452-ge625ccc21a91f3 I noted that we don't have an accessor for >> invoking _M_impl._M_key_compare in the associative containers. That >> meant that the static assertio

Re: [PATCH 1/2] libstdc++: Add _M_key_compare helper to associative containers

2025-04-25 Thread Tomasz Kaminski
On Fri, Apr 25, 2025 at 12:19 AM Jonathan Wakely wrote: > In r10-452-ge625ccc21a91f3 I noted that we don't have an accessor for > invoking _M_impl._M_key_compare in the associative containers. That > meant that the static assertions to check for valid comparison functions > were squirrelled away

[PATCH 1/2] libstdc++: Add _M_key_compare helper to associative containers

2025-04-24 Thread Jonathan Wakely
In r10-452-ge625ccc21a91f3 I noted that we don't have an accessor for invoking _M_impl._M_key_compare in the associative containers. That meant that the static assertions to check for valid comparison functions were squirrelled away in _Rb_tree::_S_key instead. As Jason noted in https://gcc.gnu.org