C++ Logo


Advanced search

Re: [std-proposals] void type instantiations

From: Phil Bouchard <boost_at_[hidden]>
Date: Thu, 13 Oct 2022 23:15:35 -0400
On 10/13/22 23:09, Jason McKesson via Std-Proposals wrote:
> What exactly is the purpose of this? Are you just trying to ensure
> that a function is only called once? Because we already have that:
> `std::call_once`:
> int avcodec(...)
> {
> static std::once_flag{};
> std::call_once(once_flag, []() {avcodec_register_all(); av_register_all();});
> }

Interesting, I didn't know that.

Email Signature
Logo <https://www.fornux.com/>  
*Phil Bouchard*  facebook icon 
T: (819) 328-4743
E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com>
1188 rue Saint-Louis| Gatineau (Qc), J8T 2L8 Canada
Banner <https://goglobalawards.org/> Le message ci-dessus, ainsi que les 
documents l'accompagnant, sont destinés uniquement aux personnes 
identifiées et peuvent contenir des informations privilégiées, 
confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce 
message par erreur, veuillez le détruire.
This communication (and/or the attachments) is intended for named 
recipients only and may contain privileged or confidential information 
which is not to be disclosed. If you received this communication by 
mistake please destroy all copies.

Received on 2022-10-14 03:15:36