Fun with templates

Marco Leise Marco.Leise at gmx.de
Sun Jul 7 04:59:53 PDT 2013


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.

-- 
Marco



More information about the Digitalmars-d mailing list