const void* when wrapping C++
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat Sep 15 10:26:21 PDT 2012
On 9/15/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> On 9/15/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>> So the question is why is const(void)* illegal in D?
>
> Sorry guys this question is entirely wrong. That syntax *is* legal. I
> don't know what happened last night when it failed to compile, maybe
> it was template-related. Nuke the question.
>
I know what was causing it now, I had a Const!() template I've used to
simulate head-const in D, and the inner type ended up being 'void'
which isn't a valid type on its own.
More information about the Digitalmars-d-learn
mailing list