Skip to content

Commit

Permalink
Fix missing space in snippet of code
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelKrypton committed Apr 14, 2023
1 parent c37df9c commit 72068cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion New_library_features.tex
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,11 @@ \section{\CPP|std::variant|}
var_t w = std::visit([](auto&& arg) -> var_t {
return arg + arg;
}, v);

// void visitor, only called for side-effects
std::visit([](auto&& arg){std::cout << arg;}, w);
std::visit([](auto&& arg){
std::cout << arg << " ";
}, w);
}
}
\end{Cpp}
Expand Down

0 comments on commit 72068cf

Please sign in to comment.