diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-03-09 11:11:32 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-03-16 08:21:49 +0100 |
commit | e464e1eb8eb63c631fb0916c3ea4540a88d8aad3 (patch) | |
tree | e8aec126d84650377dce21dbc2ad76b8b5e0bff6 /dist/changes-5.9.6 | |
parent | cb8eb0f86c1bbdfbd6cfa789e7596a0e05d7fe66 (diff) |
Introduce always constexpr variants of qCountTrailingZeroBits
qt_builtin_ctz is unfortunately not constexpr on MSVC, so the whole
function cannot be used in constexpr contexts, unless v is exactly 0. As we
don't have std::is_costant_evaluated until C++20, we need to introduce a new
helper function, which always works in constexpr contexts.
Change-Id: I36290acb61e430d6bdb3da112a9b2263be4b9fbf
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'dist/changes-5.9.6')
0 files changed, 0 insertions, 0 deletions