Skip to content

Commit

Permalink
simple visitor pattern compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theanalyst committed Dec 17, 2021
1 parent 3d42523 commit 110f756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talk/morelanguage/morestl.tex
Expand Up @@ -103,7 +103,7 @@ \subsection{More STL}

\begin{frame}[fragile]
\frametitlecpp[17]{Visiting with std::variant}
\begin{cppcode*}{A simple visitor}
\begin{cppcode*}{}
using option_t = std::variant<int,float,string>;
struct Visitor {
void operator() (int i) { std::cout<< "i32:"<< i;}
Expand Down

0 comments on commit 110f756

Please sign in to comment.