Formated string with assert inside template constraints?

ArturG via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 9 14:22:28 PDT 2016


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


More information about the Digitalmars-d-learn mailing list