Metacza is a versatile language for compiling c++++ Meta template programming languages and outputting them. It can be seamlessly integrated into C + + projects without Boost::mpl libraries, allowing different namespaces and passes to directly generate C + + header files by using preprocessor-invariant directives.
Metacza 4 This version fixes the code, allowing gcc-4.7.0 to compile.
Use Example:
Example※input:metacza output:c++ fib (n) = fib (n-1) + fib (n-2); fib (0) = 0;FIB (1) = 1; Template<typehttp://www.aliyun.com/zixun/aggregation/11696.html ">name n>struct fib {typedef typename plus< TypeName fib< TypeName minus< N, int_<1> >::type >::type, TypeName fib< TypeName minus< N, int_< 2> >::type >::type >::type type; Template<>struct fib< int_<0> > {typedef int_<0> type; Template<>struct fib< int_<1> > {typedef int_<1> type;
Software Information: http://www.theiling.de/projects/metacza.html
Download Address: HTTP://WWW.THEILING.DE/DOWNLOADS/METACZA-4-SRC.TG