[Tdg] compile time string length

Wesley Smith wesley.hoke at gmail.com
Thu Feb 22 00:47:33 PST 2007


On 2/22/07, Rama Hoetzlein <rch at umail.ucsb.edu> wrote:
> The build in pre-compiler - that thing that replaces stuff with #defines
> - is not powerful enough,

That's different than template metaprogramming.  I've found some
really interesting docs on this stuff.  Check out:
http://aszt.inf.elte.hu/~gsd/halado_cpp/ch06s06.html
http://www.angelikalanger.com/Articles/Cuj/ExpressionTemplates/ExpressionTemplates.htm#Dot%20Product
http://www.boost.org/libs/mpl/doc/index.html

There's alot to digest and I'm far from understanding all this stuff
especially the Boost MPL lambda calculus classes, but I wouldn't say
hashing a string at compile time is impossible yet although I'm
getting there.

wes



More information about the Tdg mailing list