I need to use a string as the ID to obtain some object. At implement this in a run-time, and works well. But this makes the static type checking impossible, for obvious rea
Templates can be instantiated with any external symbol, therefore this should work as expected:
external char const* object_method = "object.method"; ... = hash_cstring::value;
(given the template hash_cstring<> is able to deal with pointer values).
hash_cstring<>