Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1commit 27230157212c32420e71b28870d6c77630c3dc372Author: Allan Sandfeld Jensen <[email protected]>3Date: Fri Aug 1 12:14:50 2025 +02005Fix incomplete SFINAE of QAnyStringView7Inside the QAnyStringView class, the class is incomplete, and will8erroneously fail SFINAE. Do the assert after for it to actually work.10Detected with gcc 16.12Amends 2c9529e158fc589c48e6b1fb61dca2133e33ac4d.14Pick-to: 6.10 6.9 6.8 6.515Change-Id: Ifd3ad6d3ec17cd1725fb8b735469502791f9e9a316Reviewed-by: Marc Mutz <[email protected]>18diff --git a/qtbase/src/corelib/text/qanystringview.cpp b/qtbase/src/corelib/text/qanystringview.cpp19index 7bf8a3fa1fd..3c993ff1da0 10064420--- a/qtbase/src/corelib/text/qanystringview.cpp21+++ b/qtbase/src/corelib/text/qanystringview.cpp22@@ -355,6 +355,10 @@ QT_BEGIN_NAMESPACE23\sa isNull(), isEmpty()24*/26+// confirm we don't make an accidental copy constructor:27+static_assert(QtPrivate::IsContainerCompatibleWithQStringView<QAnyStringView>::value == false);28+static_assert(QtPrivate::IsContainerCompatibleWithQUtf8StringView<QAnyStringView>::value == false);29+30/*!31\fn template <typename Char, size_t Size> static QAnyStringView fromArray(const Char (&string)[Size]) noexcept33diff --git a/qtbase/src/corelib/text/qanystringview.h b/qtbase/src/corelib/text/qanystringview.h34index 9617209059b..69b7fafb438 10064435--- a/qtbase/src/corelib/text/qanystringview.h36+++ b/qtbase/src/corelib/text/qanystringview.h37@@ -96,10 +96,6 @@ private:38std::is_convertible<T, QStringOrQByteArray>39>, bool>;41- // confirm we don't make an accidental copy constructor:42- static_assert(QtPrivate::IsContainerCompatibleWithQStringView<QAnyStringView>::value == false);43- static_assert(QtPrivate::IsContainerCompatibleWithQUtf8StringView<QAnyStringView>::value == false);44-45template<typename Char>46static constexpr bool isAsciiOnlyCharsAtCompileTime(Char *str, qsizetype sz) noexcept47{
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.