metashell

Interactive shell for C++ template metaprogramming exploration

brewmacoslinux
Try with needOr install directly
Source

About

Metaprogramming shell for C++ templates

Commands

metashell

Examples

Start an interactive metaprogramming session$ metashell
Evaluate a template metaprogram and see compile-time results$ metashell -c "template <int N> struct Factorial { static const int value = N * Factorial<N-1>::value; }; template <> struct Factorial<0> { static const int value = 1; }; Factorial<5>::value"
Load and evaluate a C++ source file$ metashell -f program.cpp