[Bf-blender-cvs] [5c4295ee6f9] master: Workaround for msvc compiler bug

Jacques Lucke noreply at git.blender.org
Thu Sep 15 09:34:35 CEST 2022


Commit: 5c4295ee6f92a92dbb442b1a6ffd1eb2e9adc57d
Author: Jacques Lucke
Date:   Thu Sep 15 09:33:57 2022 +0200
Branches: master
https://developer.blender.org/rB5c4295ee6f92a92dbb442b1a6ffd1eb2e9adc57d

Workaround for msvc compiler bug

This is the same issue as in rB2e8089b6bf50.

===================================================================

M	source/blender/functions/FN_lazy_function_execute.hh

===================================================================

diff --git a/source/blender/functions/FN_lazy_function_execute.hh b/source/blender/functions/FN_lazy_function_execute.hh
index a59d363a9d5..5a80985cdc0 100644
--- a/source/blender/functions/FN_lazy_function_execute.hh
+++ b/source/blender/functions/FN_lazy_function_execute.hh
@@ -67,7 +67,7 @@ inline void execute_lazy_function_eagerly_impl(
   (
       [&]() {
         constexpr size_t I = InIndices;
-        using T = Inputs;
+        typedef Inputs T;
         const CPPType &type = CPPType::get<T>();
         input_pointers[I] = {type, &std::get<I>(inputs)};
       }(),
@@ -75,7 +75,7 @@ inline void execute_lazy_function_eagerly_impl(
   (
       [&]() {
         constexpr size_t I = OutIndices;
-        using T = Outputs;
+        typedef Outputs T;
         const CPPType &type = CPPType::get<T>();
         output_pointers[I] = {type, std::get<I>(outputs)};
       }(),



More information about the Bf-blender-cvs mailing list