__func__ is just the function name, ie "type_id", I need the whole signature to capture U as well

This commit is contained in:
King_DuckZ 2020-05-01 18:34:36 +02:00
parent f5fcbd193a
commit 51c69e6343

View file

@ -145,7 +145,7 @@ namespace wren {
template <typename U> template <typename U>
[[gnu::const]] [[gnu::const]]
inline constexpr std::uint32_t type_id() { inline constexpr std::uint32_t type_id() {
return duckcore::StringCRC32(__func__); return duckcore::StringCRC32(__PRETTY_FUNCTION__);
} }
} //namespace detail } //namespace detail