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-13 11:51:46 +0300
committerJacques Lucke <jacques@blender.org>2020-07-13 11:51:46 +0300
commita19584a4715444721f8f625f0b5481e67c0d97ae (patch)
tree02e4d3d1ceb16c76448d2b2889a656d6807aabbe /source/blender/blenlib/BLI_vector.hh
parent644a915b1b096be816ddc50050a70d90a2787191 (diff)
BLI: fix constructor regression for Vector and Array
This was introduced in rB403384998a6bb5f428e15ced5.
Diffstat (limited to 'source/blender/blenlib/BLI_vector.hh')
-rw-r--r--source/blender/blenlib/BLI_vector.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_vector.hh b/source/blender/blenlib/BLI_vector.hh
index df885588d9b..1fe38464ad0 100644
--- a/source/blender/blenlib/BLI_vector.hh
+++ b/source/blender/blenlib/BLI_vector.hh
@@ -167,6 +167,10 @@ class Vector {
{
}
+ Vector(const std::initializer_list<T> &values) : Vector(Span<T>(values))
+ {
+ }
+
template<typename U,
size_t N,
typename std::enable_if_t<std::is_convertible_v<U, T>> * = nullptr>