diff --git a/src/corelib/tools/qflatmap_p.h b/src/corelib/tools/qflatmap_p.h index 68ab567439..7fce7c43af 100644 --- a/src/corelib/tools/qflatmap_p.h +++ b/src/corelib/tools/qflatmap_p.h @@ -83,6 +83,7 @@ public: } }; +namespace qflatmap { namespace detail { template class QFlatMapMockPointer @@ -100,6 +101,7 @@ public: } }; } // namespace detail +} // namespace qflatmap template, class KeyContainer = QList, class MappedContainer = QList> @@ -107,8 +109,9 @@ class QFlatMap : private QFlatMapValueCompare { static_assert(std::is_nothrow_destructible_v, "Types with throwing destructors are not supported in Qt containers."); - template - using mock_pointer = detail::QFlatMapMockPointer; + template + using mock_pointer = qflatmap::detail::QFlatMapMockPointer; + public: using key_type = Key; using mapped_type = T;