diff options
-rw-r--r-- | src/lib/util/strformat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/strformat.h b/src/lib/util/strformat.h index 6bb26bb6dc3..ac7301dc6bd 100644 --- a/src/lib/util/strformat.h +++ b/src/lib/util/strformat.h @@ -1134,7 +1134,7 @@ public: template <typename Format, typename... Params> format_argument_pack_impl(Format &&fmt, Params &&... args) : std::array<format_argument<Stream>, Count>({ { format_argument<Stream>(std::forward<Params>(args))... } }) - , format_argument_pack<Stream>(std::forward<Format>(fmt), this->cbegin(), Count) + , format_argument_pack<Stream>(std::forward<Format>(fmt), Count ? &*this->cbegin() : nullptr, Count) { static_assert(sizeof...(Params) == Count, "Wrong number of constructor arguments"); } |