From a5556a12a334d45464554d27d4791b7feed9d8e4 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Fri, 20 Jan 2017 20:22:48 -0800 Subject: [PATCH] formattedWrite - pointers to stack variables need to be 'scope' --- std/format.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/format.d b/std/format.d index 73390584f15..27678d06b6d 100644 --- a/std/format.d +++ b/std/format.d @@ -451,7 +451,7 @@ uint formattedWrite(Writer, Char, A...)(Writer w, in Char[] fmt, A args) { import std.conv : text, to; - alias FPfmt = void function(Writer, const(void)*, ref FormatSpec!Char) @safe pure nothrow; + alias FPfmt = void function(Writer, scope const(void)*, ref FormatSpec!Char) @safe pure nothrow; auto spec = FormatSpec!Char(fmt);