C++ Logo

std-proposals

Advanced search

Re: [std-proposals] void type instantiations

From: connor horman <chorman64_at_[hidden]>
Date: Thu, 13 Oct 2022 22:34:54 -0400
Would this not be in line with the "normal void" proposal? That would allow
`void` being a field type.

On Thu, 13 Oct 2022 at 22:27, Phil Bouchard via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Greetings,
>
> Here's a simple suggestion: void type instantiations. It would be quite
> useful for singletons and keeping the code cleaner:
>
>
> int avcodec(...)
> {
>
> static void r1 = avcodec_register_all();
> static void r2 = av_register_all();
>
> [...]
>
> }
>
>
> Regards,
> --
> [image: Logo] <https://www.fornux.com/>
> *Phil Bouchard* [image: facebook icon]
> <https://www.linkedin.com/in/phil-bouchard-5723a910/>
> CTO
> T: (819) 328-4743
> E: phil_at_[hidden] | www.fornux.com
> 1188 rue Saint-Louis | Gatineau (Qc), J8T 2L8 Canada
> [image: 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.
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2022-10-14 02:35:07