Skip to content

Commit c34561b

Browse files
committed
Fix issue #8260 - allow only pointers as formattedRead parameters
1 parent db204e0 commit c34561b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
`std.format.formattedRead` now only accepts pointers as input arguments.
2+

std/format.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ can match the expected number of readings or fewer, even zero, if a
568568
matching failure happens.
569569
*/
570570
uint formattedRead(R, Char, S...)(ref R r, const(Char)[] fmt, S args)
571+
if (allSatisfy!(isPointer, S))
571572
{
572573
import std.typecons : isTuple;
573574

0 commit comments

Comments
 (0)