Issues with std.format template function
LeqxLeqx via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 14 21:44:25 PDT 2017
Hello!
I'm having issues with the format function.
My program is as follows:
import std.format;
import std.stdio;
int main ()
{
auto s = format!"%s is %s"("Pi", 3.14);
writeln(s); // "Pi is 3.14";
}
and when compiling with GDC, I'm getting this error:
test.d:8: error: template instance format!"format is �i{"
template '{ih��
���
P��
@P� �N� P��
' is not defined
I do not know why. Any help would be much appreciated!
Thank you all!
More information about the Digitalmars-d-learn
mailing list