diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-30 19:01:14 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-30 19:18:48 +0300 |
commit | d67b7f3b5236d636d5bd35a917d13b9f06452df0 (patch) | |
tree | c929b1b5a664d6bbd5306f2d368eefed007ee4f0 | |
parent | 613f62d15ce1851a8b7017013e9cced1009ad431 (diff) |
Functions: use raw allocator for function signature
This allows multi-functions to have static storage duration.
-rw-r--r-- | source/blender/functions/FN_multi_function_signature.hh | 7 |
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 { |