Archived

This topic is now archived and is closed to further replies.

Shannon Barber

meta-template [x]BNF compiler

Recommended Posts

Big B    337
neato.

Any idea of how fast it is?


University is a fountain of knowledge, and students go there to drink.

Share this post


Link to post
Share on other sites
felonius    122
Speaking of meta-programming, can any of you recommend a good book that introduces C++ meta-programming? I would really like to learn about this.

Share this post


Link to post
Share on other sites
Fruny    1658
quote:
Original post by felonius
Speaking of meta-programming, can any of you recommend a good book that introduces C++ meta-programming? I would really like to learn about this.


That ''introduces'', not really, but Modern C++ Design by A. Alexandrescu is pretty much ''it'' when it comes down to template metaprogramming.

For ''introduction'', you''ll have to scour books like The C++ Standard Library by Josuttis and extract the underlying concepts from his coverage of the STL.

Alternatively, SGI''s STL website (see .sig) can give you hints too.
Same deal with the Boost website (see .sig too).

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]

Share this post


Link to post
Share on other sites
Shannon Barber    1681
google it, there ought to be some hits

The definition of template meta-programming is a little ambiguous; orginally it was used to refer to recursive templates - for example you could implement a template that calculates a given Fibonacci number at compile time. Now anything that uses contemporary template designs is described as meta-template programming (for example using policy & trait templates).

quote:
Big B neato.
Any idea of how fast it is?


I haven't had time to look over the library in detail yet, I just thought it was interesting enough to share

Apparently they've sumbitted a revision to Boost.


...
I found another interesting library: this is from a post to C++.mod. It's a database template library, that provides STL compatible containers and iterators for ODBC; compiles with MSVC6/7, BCB5/6 for Windows, & gcc 3.1 for linux.

DTL

[edited by - Magmai Kai Holmlor on June 10, 2002 6:47:54 PM]

Share this post


Link to post
Share on other sites