It's a class! It's a struct! It's ... SuperStruct!
rcorre via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon Oct 19 19:02:54 PDT 2015
On Sunday, 18 October 2015 at 21:26:55 UTC, rcorre wrote:
>
> And at the risk of going a little overboard, I think the answer
> to supporting arbitrary templated functions is to wrap
> visitor/project itself in a template, that then returns a
> variadic function while passing along other compile-time args.
> Maybe. I haven't thought it through too carefully...
Proof of concept for passing through compile-time args:
https://github.com/rcorre/superstruct/commit/27b99fae5eb1242ffcde31a7546771f35f8221f1
If at first you don't succeed, wrap everything in a template!
More information about the Digitalmars-d-announce
mailing list