]> www.ginac.de Git - ginac.git/commitdiff
Avoid internal use of designated initializer...
authorRichard Kreckel <kreckel@ginac.de>
Sat, 28 Oct 2023 15:57:43 +0000 (17:57 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 28 Oct 2023 15:59:59 +0000 (17:59 +0200)
...which is a C++20 feature. This fixes MSVC build.

Reported by Igor Machado <igor.machado@gmail.com>.

ginac/factor.cpp

index cb25f8161b329bac09731c888f2c9d93058a768c..86c0714dd32960729f5304c668970a49f457ec9a 100644 (file)
@@ -2380,8 +2380,7 @@ static ex factor_multivariate(const ex& poly, const exset& syms)
                copy_if(syms.begin(), syms.end(),
                        inserter(syms_wox, syms_wox.end()), [x](const ex& y){ return y != x; });
 
-               factorization_ctx ctx = {.poly = poly, .x = x,
-                                        .syms_wox = syms_wox};
+               factorization_ctx ctx{poly, x, syms_wox};
 
                // make polynomial primitive
                poly.unitcontprim(x, ctx.unit, ctx.cont, ctx.pp);