C++ bindings: const(T) dropped in return types of templates ?

frame frame86 at live.com
Thu Dec 9 07:58:46 UTC 2021


On Thursday, 9 December 2021 at 07:41:32 UTC, frame wrote:
> On Monday, 6 December 2021 at 20:31:47 UTC, Jan wrote:
>
>> So am I missing something, or did the compiler somehow forget 
>> about the const-ness?
>
> Sounds like a bug to me, eg this one:
> https://issues.dlang.org/show_bug.cgi?id=20685

But this is no show stopper, you can always force the mangling 
with the pragma directive.
https://dlang.org/spec/pragma.html#mangle


More information about the Digitalmars-d-learn mailing list