Skip to content

Instantly share code, notes, and snippets.

@tibordp
tibordp / variant.cc
Last active November 14, 2023 16:04
A simple variant type implementation in C++
#include <iostream>
#include <utility>
#include <typeinfo>
#include <type_traits>
#include <string>
template <size_t arg1, size_t ... others>
struct static_max;
template <size_t arg>