1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 07:31:15 +02:00

fmt(): Pass arguments by reference rather than by value

This commit is contained in:
Eelco Dolstra 2019-12-05 17:39:11 +01:00
parent f4b9495854
commit 334b8f8af1
2 changed files with 2 additions and 2 deletions

View file

@ -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);