Tuesday, May 18, 2021

Digest for comp.lang.c++@googlegroups.com - 3 updates in 2 topics

"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: May 18 03:14PM -0700

On 5/16/2021 9:10 AM, Bonita Montero wrote:
> The additional lookup-overloads could be generally activated and
> there would be an error if ther wouldn't be a proper calling-ope-
> rator for a certain key-type.
 
I have never used is_transparent before, so I coded something up for
myself. It does seem to be fairly useful.
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: May 18 03:10PM -0700

On 5/18/2021 9:12 AM, Bonita Montero wrote:
>>  >          return m_set.find(id);
>>  >      }
 
> Totally brain-damaged.
 
Yeah. It is. Sorry!
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: May 18 03:09PM -0700

On 5/18/2021 1:29 PM, Alf P. Steinbach wrote:
>> I don't think this should work at all! It should segfault.
 
>>      set_t::iterator const& search_id(unsigned long id) const
 
> Well UB is UB. That includes that things may appear to work.
 
Indeed. Mike Terry mentioned something about a stack issue.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: