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-06-30 19:01:14 +0300
committerJacques Lucke <jacques@blender.org>2020-06-30 19:18:48 +0300
commitd67b7f3b5236d636d5bd35a917d13b9f06452df0 (patch)
treec929b1b5a664d6bbd5306f2d368eefed007ee4f0 /source/blender/functions/FN_multi_function_signature.hh
parent613f62d15ce1851a8b7017013e9cced1009ad431 (diff)
Functions: use raw allocator for function signature
This allows multi-functions to have static storage duration.
Diffstat (limited to 'source/blender/functions/FN_multi_function_signature.hh')
-rw-r--r--source/blender/functions/FN_multi_function_signature.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/functions/FN_multi_function_signature.hh b/source/blender/functions/FN_multi_function_signature.hh
index 73e7b9bb18d..77a8ce14c03 100644
--- a/source/blender/functions/FN_multi_function_signature.hh
+++ b/source/blender/functions/FN_multi_function_signature.hh
@@ -33,9 +33,10 @@ namespace fn {
struct MFSignature {
std::string function_name;
- Vector<std::string> param_names;
- Vector<MFParamType> param_types;
- Vector<uint> param_data_indices;
+ /* Use RawAllocator so that a MultiFunction can have static storage duration. */
+ Vector<std::string, 4, RawAllocator> param_names;
+ Vector<MFParamType, 4, RawAllocator> param_types;
+ Vector<uint, 4, RawAllocator> param_data_indices;
uint data_index(uint param_index) const
{