Skip to content

Opt out of standard library memory_resource on macOS < 14 and iOS < 17

Stefan Gerlach requested to merge sgerlach/qtbase:kde/5.15 into kde/5.15

Although the header is available, and the compiler reports that the standard library supports memory_resource, the feature is only available on macOS 14 and iOS 17, as reported by

As long as our deployment target is lower we can't unconditionally use this feature. It's not clear whether the expectation is that consumers of the standard library on these platforms will have to runtime check their uses of these APIs.

Pick-to: 6.6 6.5 Task-number: QTBUG-114316 Change-Id: I50c1425334b9b9842b253442e2b3aade637783ea Reviewed-by: Thiago Macieira

cherry-picked f7c8ff51

Author: Tor Arne Vestbø Date: Wed Jun 7 02:31:42 2023 +0200

on branch kde/5.15

Fixed merge conflicts in

  • src/corelib/global/qcompilerdetection.h
  • src/corelib/tools/qduplicatetracker_p.h

Following !312 (closed)

Merge request reports