#include <Core/Core.h> using namespace Upp; CONSOLE_APP_MAIN { Cout() << GetHashValue ("Hello") << EOL; //Runtime hashing Cout() << HASH64("Hello") << EOL; //Compile time hashing //Both value printed should be identique }
Not right now. But you can try to reimplement function hash_t memhash(const void *ptr, size_t count) as constexpr.
If you do that it will be possible to call it at compile time.