From 4b69b7515ba6344a5e160a8ea1bf31867abf6525 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 1 Aug 2018 14:20:42 +1000 Subject: [PATCH] format: accept forwarding references for printf/python --- format.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format.hpp b/format.hpp index 40377899..d8426372 100644 --- a/format.hpp +++ b/format.hpp @@ -203,7 +203,7 @@ namespace util::format { /// parses a printf format string and binds parameters for rendering. template auto - printf (util::view fmt, const Args &...args) + printf (util::view fmt, Args &&...args) { return printf (fmt) (args...); } @@ -212,7 +212,7 @@ namespace util::format { /// parses a python format string and binds parameters for rendering. template auto - python (util::view fmt, const Args &...args) + python (util::view fmt, Args &&...args) { return python (fmt) (args...); }