C++ Logo


Advanced search

Re: [wg14/wg21 liaison] a common C/C++ core specification

From: Hubert Tong <hubert.reinterpretcast_at_[hidden]>
Date: Tue, 10 Mar 2020 12:27:28 -0400
> The fourth is, that the `default` case needs a template, which we
> obviously don't have in C and which we will probably never have, for
> the same reasons.
Envisioning generic as a group of overloads is interesting. With C++, we
now have abbreviated function templates, so even the non-default cases can
be templates somewhat directly. The observation that C++ could use
something like generic was the subject of a previous paper:

Received on 2020-03-10 11:30:31