Blender Git Loki
Git Commits -> Revision 4033849
Revision 4033849 by Jacques Lucke (master) July 8, 2020, 20:27 (GMT) |
BLI: improve constructors and conversions to span This allows us to avoid many calls to `as_span()` methods. I will remove those in the next commit. Furthermore, constructors of Vector and Array can convert from one type to another now. I tested these changes on Linux with gcc and on Windows. |
Commit Details:
Full Hash: 403384998a6bb5f428e15ced5503206b45032b25
Parent Commit: 4b85ed8
Lines Changed: +142, -18
7 Modified Paths:
/source/blender/blenlib/BLI_array.hh (+17, -3) (Diff)
/source/blender/blenlib/BLI_memory_utils.hh (+36, -0) (Diff)
/source/blender/blenlib/BLI_span.hh (+7, -2) (Diff)
/source/blender/blenlib/BLI_vector.hh (+31, -12) (Diff)
/tests/gtests/blenlib/BLI_memory_utils_test.cc (+37, -0) (Diff)
/tests/gtests/blenlib/BLI_vector_test.cc (+12, -0) (Diff)
/tests/gtests/functions/FN_attributes_ref_test.cc (+2, -1) (Diff)
/source/blender/blenlib/BLI_memory_utils.hh (+36, -0) (Diff)
/source/blender/blenlib/BLI_span.hh (+7, -2) (Diff)
/source/blender/blenlib/BLI_vector.hh (+31, -12) (Diff)
/tests/gtests/blenlib/BLI_memory_utils_test.cc (+37, -0) (Diff)
/tests/gtests/blenlib/BLI_vector_test.cc (+12, -0) (Diff)
/tests/gtests/functions/FN_attributes_ref_test.cc (+2, -1) (Diff)