On Tuesday, 12 May 2020 at 20:40:35 UTC, Adam D. Ruppe wrote:
A default argument of void is a common way to do ittemplate foo(T = void) { static if(is(T == void)) { not given } else { use T } }
Perfect! Works as I desired.
Luis via Digitalmars-d-learn Tue, 12 May 2020 14:06:23 -0700
On Tuesday, 12 May 2020 at 20:40:35 UTC, Adam D. Ruppe wrote:
A default argument of void is a common way to do ittemplate foo(T = void) { static if(is(T == void)) { not given } else { use T } }
Perfect! Works as I desired.