From ee67e8750a8128935636bf10b3e2c7fff6a9b769 Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Mon, 2 Oct 2023 22:49:17 +0200 Subject: [PATCH] Actually use a tagged union --- tests/test_tagged_union.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_tagged_union.hpp b/tests/test_tagged_union.hpp index fb2aaac9..016aaabe 100644 --- a/tests/test_tagged_union.hpp +++ b/tests/test_tagged_union.hpp @@ -28,7 +28,7 @@ void test_tagged_union() { rfl::Field<"width", double> width; }; - using Shapes = std::variant; + using Shapes = rfl::TaggedUnion<"shape", Circle, Square, Rectangle>; const Shapes r = Rectangle{.height = 10, .width = 5};