Skip to content

Instantly share code, notes, and snippets.

View Wumpf's full-sized avatar

Andreas Reich Wumpf

View GitHub Profile
@tibordp
tibordp / variant.cc
Last active January 26, 2025 13:27
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>