Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-08 21:39:12 +0300
committerJacques Lucke <jacques@blender.org>2020-07-08 21:39:20 +0300
commitf7d5d4ee3bad522691fba36fcfae321a28752d20 (patch)
tree0140148dc8bcd96c55baaeccc91a09da3d8d3251 /source/blender/blenlib/BLI_hash_tables.hh
parente4926c167bac80297bd1808e020510ec0d17369f (diff)
Cleanup: use c++17 helper variable templates
Diffstat (limited to 'source/blender/blenlib/BLI_hash_tables.hh')
-rw-r--r--source/blender/blenlib/BLI_hash_tables.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_hash_tables.hh b/source/blender/blenlib/BLI_hash_tables.hh
index 5f9e06c5a64..aaed772071d 100644
--- a/source/blender/blenlib/BLI_hash_tables.hh
+++ b/source/blender/blenlib/BLI_hash_tables.hh
@@ -65,13 +65,13 @@ inline constexpr uint32_t power_of_2_max_u_constexpr(const uint32_t x)
template<typename IntT> inline constexpr IntT ceil_division(const IntT x, const IntT y)
{
- BLI_STATIC_ASSERT(!std::is_signed<IntT>::value, "");
+ BLI_STATIC_ASSERT(!std::is_signed_v<IntT>, "");
return x / y + ((x % y) != 0);
}
template<typename IntT> inline constexpr IntT floor_division(const IntT x, const IntT y)
{
- BLI_STATIC_ASSERT(!std::is_signed<IntT>::value, "");
+ BLI_STATIC_ASSERT(!std::is_signed_v<IntT>, "");
return x / y;
}