Skip to content

Instantly share code, notes, and snippets.

View prapin's full-sized avatar

Patrick Rapin prapin

  • Xample SàRL
  • Villars-sous-Champvent
View GitHub Profile
@prapin
prapin / typesafe_varargs.cpp
Last active November 22, 2018 15:49 — forked from Aszarsha/typesafe_varargs.cpp
A simpler version that decreases the overhead of the variadic call.
// Type-safe varargs with C++11 variadic templates.
//
// Andreas Fredriksson <deplinenoise at gmail dott com>
// minor changes from:
// Thomas Hume <thomas dot hume at labri dot fr>
// modified by Patrick Rapin
//
// This code is in the public domain.
#include <stdio.h>