Skip to content

Instantly share code, notes, and snippets.

View FinalTheory's full-sized avatar

Yan Huang FinalTheory

View GitHub Profile
@FinalTheory
FinalTheory / gist:796c4496e366832254f5ab523cdd9ec3
Created May 19, 2017 03:54 — forked from mattbierner/gist:090a80d25259b6472827
Compile Time Brainfuck C++ Metaprogramming Evaluator
#include <utility>
using iochar = char;
using memval = unsigned char;
/* BF Memory Cell */
template <memval val = 0>
struct Cell {
enum { value = val };