diff options
| author | Rym Bouabid <rym.bouabid@qt.io> | 2024-06-19 15:17:52 +0200 |
|---|---|---|
| committer | Rym Bouabid <rym.bouabid@qt.io> | 2024-07-15 16:43:00 +0200 |
| commit | 3ab18f40216fd55e57d8a8128ea1fae7612a45a3 (patch) | |
| tree | e64638f278b5a935148c666de99a99004615de79 /src/corelib/io/qresource.cpp | |
| parent | 384acdc1cf2cc6472c9eb9d2d79077736ded0e92 (diff) | |
qcompilerdetection.h: Introduce Q_DECL_CONSTEXPR_DTOR macro
Add this macro to be able to declare explicit destructors constexpr.
This became possible starting from C++20, where constexpr >= 201907L.
Introduce a syntax test in test_qglobal.cpp.
Document the new macro.
Replace "#if __cpp_constexpr >= 201907L constexpr" with the macro
(QScopedValueRollback has this).
[ChangeLog][QtCore] Introduced Q_DECL_CONSTEXPR_DTOR which
resolves to constexpr when __cpp_constexpr >= 201907L, otherwise
it resolves to inline.
Task-number: QTBUG-124462
Change-Id: I763ce1e4674fdc6d7307a63df9a45cc4db253fc4
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/io/qresource.cpp')
0 files changed, 0 insertions, 0 deletions
