From 89c61b78b1fcdb44e0b30e7a7f91f2539c998bc8 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sat, 28 Oct 2023 17:57:43 +0200 Subject: [PATCH] Avoid internal use of designated initializer... ...which is a C++20 feature. This fixes MSVC build. Reported by Igor Machado . --- ginac/factor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ginac/factor.cpp b/ginac/factor.cpp index cb25f816..86c0714d 100644 --- a/ginac/factor.cpp +++ b/ginac/factor.cpp @@ -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); -- 2.49.0