diff --git a/src/corelib/text/qanystringview.h b/src/corelib/text/qanystringview.h index 822a53bb7c5..129692b50ec 100644 --- a/src/corelib/text/qanystringview.h +++ b/src/corelib/text/qanystringview.h @@ -200,13 +200,13 @@ public: constexpr QAnyStringView(Container &&c, QtPrivate::wrapped_t &&capacity = {}) //noexcept(std::is_nothrow_constructible_v) : QAnyStringView(capacity = std::forward(c)) {} + template = true> constexpr QAnyStringView(const Char &c) noexcept : QAnyStringView{&c, 1} {} template = true> constexpr QAnyStringView(Char ch, QCharContainer &&capacity = QCharContainer()) noexcept : QAnyStringView{&(capacity.ch = ch), 1} {} - template , bool> = true> constexpr QAnyStringView(Char c, Container &&capacity = {}) noexcept