diff options
author | 2016-03-01 13:49:43 +0100 | |
---|---|---|
committer | 2016-03-01 13:49:43 +0100 | |
commit | d1edd96ee8c3e279680b7e5506e70c5191c8086b (patch) | |
tree | 1221e13bd67e0e0ed03422949e6ba816ff8e6b96 /src/lib/util/strformat.h | |
parent | 6938a038d96e8e85044f73299e5f78e11767fdcc (diff) |
Fix for Visual Studio build by Vas (nw)
Diffstat (limited to 'src/lib/util/strformat.h')
-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"); } |