mirror of
https://github.com/NixOS/nix
synced 2025-06-26 15:51:15 +02:00
fmt(): Pass arguments by reference rather than by value
This commit is contained in:
parent
f4b9495854
commit
334b8f8af1
2 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ extern Verbosity verbosity; /* suppress msgs > this */
|
|||
#define vomit(args...) printMsg(lvlVomit, args)
|
||||
|
||||
template<typename... Args>
|
||||
inline void warn(const std::string & fs, Args... args)
|
||||
inline void warn(const std::string & fs, const Args & ... args)
|
||||
{
|
||||
boost::format f(fs);
|
||||
nop{boost::io::detail::feed(f, args)...};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue