summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-03-12 10:49:20 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-03-12 10:49:20 +0100
commitdcab55bf53b94713a6f72e9633f5101c8dd6c08c (patch)
tree014006d9545ff224990ec33769b93ee92214422a
parentde94132b261e846d2cc4d1aa6d8cd61797a00329 (diff)
fix for VS builds by Vas (nw)
-rw-r--r--src/lib/util/strformat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/strformat.h b/src/lib/util/strformat.h
index 0b65e942e9f..8eb5f791ed0 100644
--- a/src/lib/util/strformat.h
+++ b/src/lib/util/strformat.h
@@ -1111,7 +1111,7 @@ protected:
format_argument<Stream> const *arguments,
std::enable_if_t<handle_container<std::remove_reference_t<Format> >::value, std::size_t> argument_count)
: m_begin(fmt.empty() ? nullptr : &*std::cbegin(fmt))
- , m_end(fmt.empty() ? nullptr : &*std::cend(fmt))
+ , m_end(fmt.empty() ? nullptr : (m_begin + std::distance(std::cbegin(fmt), std::cend(fmt))))
, m_check_nul(true)
, m_arguments(arguments)
, m_argument_count(argument_count)