Compile-time (preprocessor) hashing of string
Posted
by AshirusNW
on Stack Overflow
See other posts from Stack Overflow
or by AshirusNW
Published on 2010-05-13T12:05:09Z
Indexed on
2010/05/13
12:14 UTC
Read the original article
Hit count: 254
Is there any way to create a hash of string at compile time using the C/C++ preprocessor (or even template-metaprogramming)?
e.g. UNIQUE_SALT("HelloWord", 3DES);
The idea is that HelloWorld will not be present in the compiled binary, just a hash.
© Stack Overflow or respective owner