Different visibility in template for class and struct?

Shigeki Karita shigekikarita at gmail.com
Mon May 11 17:52:44 UTC 2020


On Monday, 11 May 2020 at 16:10:36 UTC, Steven Schveighoffer 
wrote:
> On 5/11/20 11:40 AM, Shigeki Karita wrote:
>> On Monday, 11 May 2020 at 15:29:53 UTC, Steven Schveighoffer 
>> wrote:
>>>[...]
>> 
>> Thanks for your answer. Now I understand that POD matters here.
>> 
>> When I add a dtor: `struct LocalS { ~this() {} }`, the 
>> `p!LocalS` got false.
>
> There is still a bug though. if p!T returns true, but make!T 
> doesn't compile, then something is inconsistent.
>
> -Steve

I agree. This should be a bug 
https://wandbox.org/permlink/5YoKKt8xjdexzJHp


More information about the Digitalmars-d-learn mailing list