diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-08 21:39:12 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-08 21:39:20 +0300 |
commit | f7d5d4ee3bad522691fba36fcfae321a28752d20 (patch) | |
tree | 0140148dc8bcd96c55baaeccc91a09da3d8d3251 /source/blender/blenlib/BLI_memory_utils.hh | |
parent | e4926c167bac80297bd1808e020510ec0d17369f (diff) |
Cleanup: use c++17 helper variable templates
Diffstat (limited to 'source/blender/blenlib/BLI_memory_utils.hh')
-rw-r--r-- | source/blender/blenlib/BLI_memory_utils.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_memory_utils.hh b/source/blender/blenlib/BLI_memory_utils.hh index 4e7234b85fb..16d6227a551 100644 --- a/source/blender/blenlib/BLI_memory_utils.hh +++ b/source/blender/blenlib/BLI_memory_utils.hh @@ -49,7 +49,7 @@ template<typename T> void destruct_n(T *ptr, uint n) /* This is not strictly necessary, because the loop below will be optimized away anyway. It is * nice to make behavior this explicitly, though. */ - if (std::is_trivially_destructible<T>::value) { + if (std::is_trivially_destructible_v<T>) { return; } @@ -73,7 +73,7 @@ template<typename T> void default_construct_n(T *ptr, uint n) { /* This is not strictly necessary, because the loop below will be optimized away anyway. It is * nice to make behavior this explicitly, though. */ - if (std::is_trivially_constructible<T>::value) { + if (std::is_trivially_constructible_v<T>) { return; } |