Skip to content

Commit c07c3ce

Browse files
authored
Merge pull request #5040 from byebye/issue_8260
Fix issue #8260 - add template constraints for formattedRead parameters
2 parents 0059fc3 + c34561b commit c07c3ce

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)