Skip to content

Instantly share code, notes, and snippets.

@lightmare
lightmare / variant.cc
Last active September 12, 2016 15:14 — forked from daniel-j-h/LICENSE.md
Lambdas instead of visitors
#include <string>
#include <iostream>
#if USE_BOOSTVAR
#include <boost/variant.hpp>
using boost::variant;
using boost::apply_visitor;
#else
#include <mapbox/variant.hpp>
using mapbox::util::variant;