Specifying C++ symbols in C++ namespaces

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Apr 3 02:16:08 PDT 2014


On 4/3/14, Walter Bright <newshound2 at digitalmars.com> wrote:
> A possible enhancement would be to allow (for all templates with no
> parameters):
>
>      nspace.foo();

My only problem with this is how it will affect existing code. E.g.:

template take(alias templ) { }
template take(T) { }

template Empty() { struct Empty { } }

take!Empty;  // which overload of take is instantiated?


More information about the Digitalmars-d mailing list