diff options
author | Julian Eisel <julian@blender.org> | 2022-11-10 15:17:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-11-10 15:17:42 +0300 |
commit | 7246c387435769a169ac24c91434c615df6434b4 (patch) | |
tree | 61842e3e0ce85e80720fdd7476d44d2e629f59fd /source/blender/functions/FN_lazy_function_execute.hh | |
parent | c5f55d17096d373791363e46004176e3f7f7ae52 (diff) | |
parent | 0b4bd3ddc016298e868169a541cf6c132b10c587 (diff) |
Merge branch 'master' into asset-browser-grid-viewasset-browser-grid-view
Diffstat (limited to 'source/blender/functions/FN_lazy_function_execute.hh')
-rw-r--r-- | source/blender/functions/FN_lazy_function_execute.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/functions/FN_lazy_function_execute.hh b/source/blender/functions/FN_lazy_function_execute.hh index a59d363a9d5..31bbddf5baf 100644 --- a/source/blender/functions/FN_lazy_function_execute.hh +++ b/source/blender/functions/FN_lazy_function_execute.hh @@ -41,6 +41,7 @@ class BasicParams : public Params { bool output_was_set_impl(const int index) const override; ValueUsage get_output_usage_impl(const int index) const override; void set_input_unused_impl(const int index) override; + bool try_enable_multi_threading_impl() override; }; namespace detail { @@ -67,7 +68,8 @@ inline void execute_lazy_function_eagerly_impl( ( [&]() { constexpr size_t I = InIndices; - using T = Inputs; + /* Use `typedef` instead of `using` to work around a compiler bug. */ + typedef Inputs T; const CPPType &type = CPPType::get<T>(); input_pointers[I] = {type, &std::get<I>(inputs)}; }(), @@ -75,7 +77,8 @@ inline void execute_lazy_function_eagerly_impl( ( [&]() { constexpr size_t I = OutIndices; - using T = Outputs; + /* Use `typedef` instead of `using` to work around a compiler bug. */ + typedef Outputs T; const CPPType &type = CPPType::get<T>(); output_pointers[I] = {type, std::get<I>(outputs)}; }(), |