From 09b7a494bd5de24f380095003fb7da4939de43e5 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 22 Jun 2025 17:39:27 +0100 Subject: nihil.ucl: improve reference management --- nihil.ucl/tests/array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nihil.ucl/tests') diff --git a/nihil.ucl/tests/array.cc b/nihil.ucl/tests/array.cc index 220564d..a4f26b6 100644 --- a/nihil.ucl/tests/array.cc +++ b/nihil.ucl/tests/array.cc @@ -210,7 +210,7 @@ TEST_CASE("ucl: array: homogeneous cast", "[ucl]") arr.push_back(integer(1)); arr.push_back(integer(42)); - auto obj = object(arr.get_ucl_object()); + auto obj = object(ref, arr.get_ucl_object()); // Converting to array should fail. REQUIRE_THROWS_AS(object_cast>(obj), type_mismatch); -- cgit v1.2.3