June 09, 2016 Formated string with assert inside template constraints? | ||||
---|---|---|---|---|
| ||||
is it supposed to work? normally it works e.g. assert(0, "some\nstring"); prints: some string but if you do it inside a template constraint like this: void someTemp(T)(T t) if(isCallable!T.call!((b){assert(b, "some\nstring");})) { } it prints: some\x0astring |
Copyright © 1999-2021 by the D Language Foundation