2015-06-07 01:57:18 +00:00
|
|
|
namespace dk {
|
|
|
|
template <typename T, uint32_t D>
|
|
|
|
HashType make_signature_hash() {
|
2015-06-08 22:00:41 +00:00
|
|
|
#if IS_PRETTY_FUNC_CONSTEXPR
|
|
|
|
constexpr bt::string<sizeof(__PRETTY_FUNCTION__)-1> func_pretty(__PRETTY_FUNCTION__);
|
|
|
|
return implem::hash_string(func_pretty.data(), func_pretty.size());
|
|
|
|
#else
|
2015-06-07 01:57:18 +00:00
|
|
|
const char* const pf = __PRETTY_FUNCTION__;
|
|
|
|
const std::size_t len = sizeof(__PRETTY_FUNCTION__) - 1;
|
|
|
|
return implem::hash_string(pf, len);
|
2015-06-08 22:00:41 +00:00
|
|
|
#endif
|
2015-06-07 01:57:18 +00:00
|
|
|
}
|
|
|
|
} //namespace dk
|