On Tue, 20 May 2025 at 09:10, Tomasz Kaminski <tkami...@redhat.com> wrote:
>
>
>
> On Mon, May 19, 2025 at 11:28 PM Nathan Myers <n...@cantrip.org> wrote:
>> +void
>> +test02()
>> +{
>> +  // Test C++26 constructors taking string views using different allocators
>> +
>> +  using alloc_type = __gnu_test::tracker_allocator<char>;
>
> I would use __gnu_test::uneq_allocator<>, as it have state (int), that is 
> checked in equality in VERIFY.

You can even stack them, so uneq_allocator<char,
tracker_allocator<char>>, if you really want to verify the number of
bytes allocated *and* that allocator identity is correctly propagated.

Reply via email to