Skip to content

Instantly share code, notes, and snippets.

View cppljevans's full-sized avatar

Larry Evans cppljevans

  • 19:26 (UTC -12:00)
View GitHub Profile
@cppljevans
cppljevans / variable_templates.limits.max.cpp
Created November 21, 2014 21:56
demo n3651 with macro's illustrating when "duplicate declaration" is needed (at least with clang3.5)
//Purpose:
// Test compiler implementation of
// "variable templates" as described in:
/*
http://isocpp.org/files/papers/N3651.pdf
*/
// and as commented on here:
/*
http://en.cppreference.com/w/Talk:cpp/language/variable_template
*/
@cppljevans
cppljevans / lambda_tagged_tuples.cpp
Last active August 29, 2015 14:02
Prototype of lisp like lambda's based on Dionne's post "Efficient tuple implementation"
//Purpose:
// Test if the code posted here:
/*
http://article.gmane.org/gmane.comp.lib.boost.devel/251897
*/
// With headers:
/*
From: Louis Dionne <ldionne.2@gmail.com>
Newsgroups: gmane.comp.lib.boost.devel
Subject: Efficient tuple implementation