Skip to content

Commit

Permalink
Make clang happy...
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Jul 17, 2024
1 parent 4aa9e2f commit a910ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/json/test_rfl_variant_visit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using Shapes = rfl::Variant<Circle, Rectangle, std::unique_ptr<Square>>;
TEST(json, test_rfl_variant_visit) {
Shapes r = Rectangle{.height = 10, .width = 5};
Shapes c = Circle{.radius = 3};
Shapes s = std::make_unique<Square>(3.0);
Shapes s = std::make_unique<Square>(Square{.width = 3.0});
const auto f = [](const auto& _r, const auto& _c, const auto& _s) {
return rfl::json::write(_r) + ", " + rfl::json::write(_c) + ", " +
rfl::json::write(_s);
Expand Down

0 comments on commit a910ce1

Please sign in to comment.