diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-14 20:04:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-14 20:04:33 +0200 |
commit | a4917d0e8dda55779877967c424755df88a153b0 (patch) | |
tree | e8ab5693612670b24664ce05b37905155ebc62c4 /options | |
parent | eb4e6b15e62fbb60b5031110922f8fc16eb370ea (diff) |
options/tie: appease llvm
for some reason can't put a parameter pack after an
optional argument. go figure.
Diffstat (limited to 'options')
-rw-r--r-- | options/tie.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/tie.hpp b/options/tie.hpp index 94fe5d49..16bf51d4 100644 --- a/options/tie.hpp +++ b/options/tie.hpp @@ -65,7 +65,7 @@ void tie_setting(value<t>& v, QLabel* lb, const QString& format, const xs&... ar template<typename t, typename F, typename... xs> decltype((void)((std::declval<F>())(std::declval<const t&>()))) -tie_setting(value<t>& v, QLabel* lb, F&& fun, const QString& fmt = QStringLiteral("%1"), const xs&... args) +tie_setting(value<t>& v, QLabel* lb, F&& fun, const QString& fmt, const xs&... args) { auto closure = [=](const t& x) { lb->setText(fmt.arg(fun(x), args...)); }; |