diff options
author | Fabian Kosmale <[email protected]> | 2020-03-09 11:11:32 +0100 |
---|---|---|
committer | Fabian Kosmale <[email protected]> | 2020-03-16 08:21:49 +0100 |
commit | e464e1eb8eb63c631fb0916c3ea4540a88d8aad3 (patch) | |
tree | e8aec126d84650377dce21dbc2ad76b8b5e0bff6 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
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ø <[email protected]>
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions