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_span.hh
parente4926c167bac80297bd1808e020510ec0d17369f (diff)
Cleanup: use c++17 helper variable templates
Diffstat (limited to 'source/blender/blenlib/BLI_span.hh')
-rw-r--r--source/blender/blenlib/BLI_span.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_span.hh b/source/blender/blenlib/BLI_span.hh
index 92d3124e01d..3da96f1f107 100644
--- a/source/blender/blenlib/BLI_span.hh
+++ b/source/blender/blenlib/BLI_span.hh
@@ -128,8 +128,7 @@ template<typename T> class Span {
* Span<T *> -> Span<const T *>
* Span<Derived *> -> Span<Base *>
*/
- template<typename U,
- typename std::enable_if<std::is_convertible<U *, T>::value>::type * = nullptr>
+ template<typename U, typename std::enable_if_t<std::is_convertible_v<U *, T>> * = nullptr>
Span(Span<U *> array) : Span((T *)array.data(), array.size())
{
}