Skip to content

Commit d97f3bd

Browse files
joaquintideslouistatta
authored andcommitted
editorial
1 parent 7b97a9e commit d97f3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2025-01-05-Joaquins2024Q4Update.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ storing the same alternative type are grouped together. For instance, the follow
4242
```cpp
4343
boost::variant_collection_of<int, double, std::string> c;
4444
// ...
45-
for(const auto& x:c) {
45+
for(const auto& v: c) {
4646
visit(
4747
[](const auto& x) { std::cout << x << "\n"; },
48-
x);
48+
v);
4949
}
5050
```
5151
will print first the `int`s in the collection, then the `double`s, and finally

0 commit comments

Comments
 (0)