Skip to content

Commit

Permalink
Fix issue #8260 - allow only pointers as formattedRead parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
byebye committed Jan 30, 2017
1 parent db204e0 commit c34561b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog/std-format-formattedRead-only-pointers.dd
@@ -0,0 +1,2 @@
`std.format.formattedRead` now only accepts pointers as input arguments.

1 change: 1 addition & 0 deletions std/format.d
Expand Up @@ -568,6 +568,7 @@ can match the expected number of readings or fewer, even zero, if a
matching failure happens.
*/
uint formattedRead(R, Char, S...)(ref R r, const(Char)[] fmt, S args)
if (allSatisfy!(isPointer, S))
{
import std.typecons : isTuple;

Expand Down

0 comments on commit c34561b

Please sign in to comment.