|
|
||
|
> Some time ago, I had a similar need and have used pseudo-recursive C macrosThank you for that link. I have also several time tried to implement
> to compute the hash value at compile time: https://gist.github.com/1048415.
such a compile-time hash in C, but without success (neither with
macros, enums, nor templates).
The code of Chris Savoie seems to work however (with optimizations turned on).