Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero Newsgroups: comp.lang.c Subject: Re: Top 10 most common hard skills listed on resumes... Date: Wed, 28 Aug 2024 14:40:55 +0200 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <20240825192810.0000672c@yahoo.com> <20240828134323.00003ce1@yahoo.com> <20240828150632.000032aa@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 28 Aug 2024 14:40:54 +0200 (CEST) Injection-Info: raubtier-asyl.eternal-september.org; posting-host="533d64590f09fbd7a1b41b803c3065f2"; logging-data="3661457"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vCEBz7R/v+LtklaPCNckqpeFS/irEbsU=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:aadZ0xSUnq9RQNni/Tf7GHysogQ= In-Reply-To: <20240828150632.000032aa@yahoo.com> Content-Language: de-DE Bytes: 2769 Am 28.08.2024 um 14:06 schrieb Michael S: > On Wed, 28 Aug 2024 13:02:03 +0200 > Bonita Montero wrote: > >> Am 28.08.2024 um 12:43 schrieb Michael S: >> >>> Virtual function call is typically implemented as double >>> indirection, so it ends up even slower than C-style call through >>> function pointer. >> >> If you have a function<>-object there's no double indirection. >> > > Are you still talking about virtual functions or trying to shift a > goalpost? > The mechanism behind function<>-objects is nearly the same. If I have only one virtual function, which happens mostly, I use a function-object not only because you've got much less code.