From 51c69e6343008d87f4020f5408f0db87d4647a07 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 1 May 2020 18:34:36 +0200 Subject: [PATCH] __func__ is just the function name, ie "type_id", I need the whole signature to capture U as well --- include/wrenpp/vm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wrenpp/vm.hpp b/include/wrenpp/vm.hpp index d649aa8..c22e8e4 100644 --- a/include/wrenpp/vm.hpp +++ b/include/wrenpp/vm.hpp @@ -145,7 +145,7 @@ namespace wren { template [[gnu::const]] inline constexpr std::uint32_t type_id() { - return duckcore::StringCRC32(__func__); + return duckcore::StringCRC32(__PRETTY_FUNCTION__); } } //namespace detail