1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-01 11:16:16 +00:00

Further prefer static constexpr.

This commit is contained in:
Thomas Harte
2025-09-12 21:40:08 -04:00
parent 98b900e886
commit 0d1fe03369
35 changed files with 118 additions and 118 deletions

View File

@@ -32,7 +32,7 @@ int upper_bound_bounded(int location) {
return at_index<0, left+1, Args...>();
}
constexpr auto midpoint = (left + right) >> 1;
static constexpr auto midpoint = (left + right) >> 1;
if(location >= at_index<0, midpoint, Args...>()) {
return upper_bound_bounded<midpoint, right, Args...>(location);
} else {