Skip to content

Instantly share code, notes, and snippets.

View artivis's full-sized avatar

Jeremie Deray artivis

View GitHub Profile
@artivis
artivis / main.cpp
Created September 7, 2017 13:20 — forked from Jiwan/main.cpp
Final C++14 example for my post - An introduction to C++'s variadic templates: a thread-safe multi-type map
#include <iostream>
#include <memory>
#include <string>
#include "repository.hpp"
// Incomplete types used as compile-time keys.
struct Key1;
struct Key2;