From 4af3f5df316e3bcfb5fbe93f027c0e7dc99cd344 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 17 Feb 2022 09:36:39 +1000 Subject: [PATCH] uri: use old style constructors for pqf return value This fixes compilation errors under clang-13 --- uri.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uri.hpp b/uri.hpp index c88c7ccf..1c7741cd 100644 --- a/uri.hpp +++ b/uri.hpp @@ -104,7 +104,12 @@ namespace cruft { pqf (void) const& { return { m_views[PATH].begin (), - m_views[FRAGMENT].end () + std::size_t ( + std::distance ( + m_views[PATH].begin (), + m_views[FRAGMENT].end () + ) + ) }; }