Fun with templates

Tommi tommitissari at hotmail.com
Sun Jul 7 05:29:11 PDT 2013


On Sunday, 7 July 2013 at 11:59:36 UTC, Marco Leise wrote:
> Am Sun, 07 Jul 2013 13:17:23 +0200
> schrieb "TommiT" <tommitissari at hotmail.com>:
>
>> const would have the same effect:
>> 
>> void f(T)(const T var) { ... }
>> 
>> ...but then you can't mutate var.
>
> That doesn't handle shared.

That seems like a compiler bug to me.


More information about the Digitalmars-d mailing list