Mission impossible
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Wed Apr 11 08:53:49 UTC 2018
On Wednesday, April 11, 2018 08:47:12 Basile B. via Digitalmars-d wrote:
> On Wednesday, 11 April 2018 at 08:36:41 UTC, Shachar Shemesh
>
> wrote:
> > struct S {
> >
> > static void func(T)(uint a, T t) {
> > }
> >
> > static void func() {
> > }
> >
> > }
> >
> > Your mission, Jim, should you choose to accept it, is this:
> >
> > Get a pointer to the version of the function that accepts no
> > arguments.
> >
> > As always, should you or any of your Force be caught or killed,
> > the Secretary will disavow any knowledge of your actions. This
> > disc will self-destruct in ten seconds.
> >
> > Good luck, Jim.
>
> I suppose __traits(getOverloads) doesn't work because of a bug ?
It looks like having the templated function makes it so that
__traits(getOverloads, ...) gives an empty AliasSeq. It's probably something
that got missed when it was made possible to overload templated functions
with non-templated functions.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list