aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/types.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-12-05 17:39:11 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-12-05 17:40:46 +0100
commit334b8f8af1c47970e6cdf3ca6f45dfb8cd8e7938 (patch)
tree187b04188cdde3416c677811d0d9990696872712 /src/libutil/types.hh
parentf4b94958543138671bc3641fc126589a5cffb24b (diff)
fmt(): Pass arguments by reference rather than by value
Diffstat (limited to 'src/libutil/types.hh')
-rw-r--r--src/libutil/types.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh
index 4bc91828b..4a6be28a2 100644
--- a/src/libutil/types.hh
+++ b/src/libutil/types.hh
@@ -67,7 +67,7 @@ inline std::string fmt(const FormatOrString & fs)
}
template<typename... Args>
-inline std::string fmt(const std::string & fs, Args... args)
+inline std::string fmt(const std::string & fs, const Args & ... args)
{
boost::format f(fs);
f.exceptions(boost::io::all_error_bits ^ boost::io::too_many_args_bit);