diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-02-07 18:51:59 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-02-22 11:06:49 -0800 |
| commit | e69d80e14d24001f93442ab59b8babb7e9df0092 (patch) | |
| tree | a755b37314ed71deb47f6f60ebfc01a9009c4c11 /tests/manual/wasm/qstdweb/files_main.cpp | |
| parent | ac9d25340aec5c165db5e58a3d8b869967c5ff97 (diff) | |
qalgorithms.h: fix mistake that MSVC has constexpr bitops in C++17 mode
<bit> exists in C++20 and is properly both constexpr and optimized. But
in C++17 mode, we don't have constexpr bitops and instead elect to have
performance at runtime instead. But somewhere along the line, either
when they were added, when C++20 <bit> support was, or in any of the
bugfixes for other compilers, the nesting of #ifdef got messed up and we
declared that we had constexpr builtins for MSVC in C++17 too.
The macro QT_HAS_CONSTEXPR_BUILTINS isn't supposed to be used by anyone
else... but we ended up not being able to use it ourselves either. So
I'm renaming it to a more precise label.
Pick-to: 6.5
Change-Id: I9671dee8ceb64aa9b9cafffd1741b9b4060c9753
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/manual/wasm/qstdweb/files_main.cpp')
0 files changed, 0 insertions, 0 deletions
