Skip to content

Commit

Permalink
Merge pull request #5040 from byebye/issue_8260
Browse files Browse the repository at this point in the history
Fix issue #8260 - add template constraints for formattedRead parameters
  • Loading branch information
JackStouffer committed Feb 2, 2017
2 parents 0059fc3 + c34561b commit c07c3ce
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 c07c3ce

Please sign in to comment.