Passing variadic template parameters AND default call site __FILE__, __LINE__ template parameters.
monkyyy
crazymonkyyy at gmail.com
Wed May 28 14:11:35 UTC 2025
On Wednesday, 28 May 2025 at 11:32:53 UTC, Jonathan M Davis wrote:
> On Wednesday, May 28, 2025 5:04:06 AM Mountain Daylight Time
> realhet via Digitalmars-d-learn wrote:
>> I've found a way to eliminate !() by using a function:
>
> Just FYI, you almost never want to instantiate a template with
> a file and line number anyway, because that means that every
> single template instantiation is going to be unique, and that's
> going to mean a lot of template bloat.
Dememoization is necessary for lots of things.
More information about the Digitalmars-d-learn
mailing list