diff --git a/utest/DApplyExpr.test.cpp b/utest/DApplyExpr.test.cpp index 17b3dca6..7854397d 100644 --- a/utest/DApplyExpr.test.cpp +++ b/utest/DApplyExpr.test.cpp @@ -92,7 +92,7 @@ namespace ut { REQUIRE(ok); // wrap primitive as GCObject, then as expression - obj prim_gco = with_facet::mkobj(&NumericPrimitives::s_mul_gco_gco_pm); + obj prim_gco = with_facet::mkobj(NumericPrimitives::make_multiply_pm(alloc)); obj fn_expr = DConstant::make(alloc, prim_gco); REQUIRE(fn_expr.data() != nullptr); @@ -131,7 +131,8 @@ namespace ut { bool ok = CollectorTypeRegistry::instance().install_types(coll); REQUIRE(ok); - obj prim_gco = with_facet::mkobj(&NumericPrimitives::s_mul_gco_gco_pm); + obj prim_gco + = with_facet::mkobj(NumericPrimitives::make_multiply_pm(alloc)); obj fn_expr = DConstant::make(alloc, prim_gco); obj val1 = DFloat::box(alloc, 3.0); @@ -166,7 +167,7 @@ namespace ut { bool ok = CollectorTypeRegistry::instance().install_types(coll); REQUIRE(ok); - obj prim_gco = with_facet::mkobj(&NumericPrimitives::s_mul_gco_gco_pm); + obj prim_gco = with_facet::mkobj(NumericPrimitives::make_multiply_pm(alloc)); obj fn_expr = DConstant::make(alloc, prim_gco); obj val1 = DFloat::box(alloc, 3.0); @@ -201,7 +202,7 @@ namespace ut { bool ok = CollectorTypeRegistry::instance().install_types(coll); REQUIRE(ok); - obj prim_gco = with_facet::mkobj(&NumericPrimitives::s_mul_gco_gco_pm); + obj prim_gco = with_facet::mkobj(NumericPrimitives::make_multiply_pm(alloc)); obj fn_expr = DConstant::make(alloc, prim_gco); obj val1 = DFloat::box(alloc, 3.0); @@ -283,7 +284,8 @@ namespace ut { bool ok = CollectorTypeRegistry::instance().install_types(coll); REQUIRE(ok); - obj prim_gco = with_facet::mkobj(&NumericPrimitives::s_mul_gco_gco_pm); + obj prim_gco + = with_facet::mkobj(NumericPrimitives::make_multiply_pm(alloc)); obj fn_expr = DConstant::make(alloc, prim_gco); obj val1 = DFloat::box(alloc, 3.0);