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;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.