summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarcus Tillmanns <marcus.tillmanns@qt.io>2022-11-24 08:52:47 +0100
committerMarcus Tillmanns <marcus.tillmanns@qt.io>2022-12-14 10:39:29 +0000
commiteca7044361415db47b62326ae3235d97d4cb7420 (patch)
treea38c727f70a7cc8cce9490bd3bb8f94387552cf6 /README.md
parent13c7283c0e3f8cb1c199bbc3ddb16bc5f99f5910 (diff)
downloadqt-creator-eca7044361415db47b62326ae3235d97d4cb7420.tar.gz
Utils: Add std::expected implementation
Adds a std::expected implementation that is compatible with >= C++11. FilePath::fileContents and FilePath::writeFileContents as well as FilePath::copyFile are changed to return std::expected. A couple of macros have been added to aid in using the expected types. An auto test was added showing how to use the library. Change-Id: Ibe3aecfc1029a0cf13b45bf5184ff03a04a2393b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 50dd9152a0..5666df9cb6 100644
--- a/README.md
+++ b/README.md
@@ -688,3 +688,15 @@ SQLite (https://www.sqlite.org) is in the Public Domain.
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+
+### TartanLlama/expected
+
+ Implementation of std::expected compatible with C++11/C++14/C++17.
+
+ https://github.com/TartanLlama/expected
+
+ To the extent possible under law, the author(s) have dedicated all
+ copyright and related and neighboring rights to this software to the
+ public domain worldwide. This software is distributed without any warranty.
+
+ http://creativecommons.org/publicdomain/zero/1.0/