Use !QT_CORE_REMOVED_SINCE(6, 7) to make the function a template in new C++20 code. The removed_api.cpp will still compile the exported version, keeping BC. This simplifies the ifdef'ery around the functions and saves the need for the QT6_{DECL,CALL}_NEW_OVERLOAD trick. Picking this change down to 6.7, because the original patch was also picked to 6.7. Tested it on MSVC in C++20 mode, and verified that the symbol is still there. Also tested the case from the linked bugreport, and verified that it does not give linker errors. Amends 88702cc87cf830b145c8bff5174748e3719364f9 and effectively reverts 91f48cc4b77b1cfb5a4490c3bed3eb97edd2f85a. Task-number: QTBUG-125610 Pick-to: 6.7 Change-Id: Idf49fd142cdc78ff8964a36f8c1e326357e1028e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit d23764c5a12e0d6d26dd54ee5613f7e5b1f9c8af) Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%