qtbase/src/corelib/global/patches/tlexpected/0004-Prefix-SPDX.patch
Tim Blechmann 6f319847d0 Add q23::expected as a private type
This patch adds a std::expected-like type in Qt for use in the Qt
implementation. It is using Sy Brand's tl::expected which is similar to
std::expected, and works with C++17. Although it closely resembles
std::expected, it is not identical and is therefor added as a private
header. The new type is intended to be accessible to all Qt modules and
is therefore made available through Qt Core. It is, however, not
intended for use in public APIs.

[ChangeLog][Third-Party Code] Added Sy Brand's tl::expected as a third
party dependency for use internally in Qt implementation.

Change-Id: I09930f31bf97498643d62814c688f288d5c33265
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
2025-05-25 23:09:56 +02:00

12 lines
463 B
Diff

diff --git a/src/corelib/global/qexpected_p.h b/src/corelib/global/qexpected_p.h
index 45c6196c947..1c9b37ae82f 100644
--- a/src/corelib/global/qexpected_p.h
+++ b/src/corelib/global/qexpected_p.h
@@ -1,3 +1,6 @@
+// Copyright (C) 2017 Sy Brand (tartanllama@gmail.com, @TartanLlama)
+// SPDX-License-Identifier: CC0-1.0
+
///
// expected - An implementation of std::expected with extensions
// Written in 2017 by Sy Brand (tartanllama@gmail.com, @TartanLlama)