Egor Krugletsov 1a905cbd4f
Use std::shared_ptr for PromiseValue<T>::m_data instead of QSharedPoitner<T> (#60)
In optimized builds (such as -O2) GCC emits "maybe-uninitialized" warning for QSharedPointer<T>::d. This happens only for optimized builds because that is when GCC tracks lifetimes[1]. In a project with lots of QtPromise uses this produces a heap of bogus warnings. This warning has been previously reported to a Qt team, but they're confident it is a compiler bug[2][3]. However, this is a second time and issue raised with QSharedPointer and warnings to it. The first time it was addressed here: https://github.com/simonbrunel/qtpromise/pull/34.

[1] https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wmaybe-uninitialized
[2] https://bugreports.qt.io/browse/QTBUG-14637
[3] https://bugreports.qt.io/browse/QTBUG-77641
2024-08-24 09:01:08 +02:00
2022-06-26 18:10:20 +02:00
2023-03-05 15:13:39 +01:00
2022-06-26 18:10:20 +02:00
2023-03-05 15:13:39 +01:00
2023-03-05 15:13:39 +01:00
2023-03-05 15:13:18 +01:00
2023-03-05 15:13:18 +01:00
2023-03-05 15:13:39 +01:00
2022-06-26 18:10:20 +02:00

Install Builds Coverage Marketplace

Overview

Promises/A+ implementation for Qt/C++.

Requires Qt 5.6 (or later) with C++11 support enabled or Qt 6.

Documentation

License

QtPromise is available under the MIT license.

Description
Promises/A+ implementation for Qt/C++
Readme MIT 1.2 MiB
Languages
C++ 97.8%
CMake 2.2%