mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 10:46:18 +08:00
Fixed typo
This commit is contained in:
@@ -141,7 +141,7 @@ const auto handle_shapes = [](const auto& field) {
|
||||
std::cout << is circle, radius: << field.value().radius() << std::endl;
|
||||
} else if constexpr (std::is_same<Name, rfl::Literal<"rectangle">>()) {
|
||||
std::cout << is rectangle, width: << field.value().width() << ", height: " << field.value().height() << std::endl;
|
||||
} else if constexpr (std::is_same<Name, rfl::Literal<"rectangle">>()) {
|
||||
} else if constexpr (std::is_same<Name, rfl::Literal<"square">>()) {
|
||||
std::cout << is square, width: << field.value().width() << std::endl;
|
||||
} else {
|
||||
// reflect-cpp also provides this very useful helper that ensures
|
||||
|
||||
Reference in New Issue
Block a user