Better diagnostics for missing PRETTY_FUNCTION macro (refs #24)

This commit is contained in:
Antony Polukhin
2018-11-14 09:09:37 +03:00
committed by GitHub
parent f3da852bca
commit a60e25a74d

View File

@ -257,7 +257,7 @@ struct ctti {
|| defined(__DMC__)
constexpr unsigned int size = sizeof(__PRETTY_FUNCTION__);
#else
boost::typeindex::detail::failed_to_get_function_name();
boost::typeindex::detail::failed_to_get_function_name<T>();
#endif
boost::typeindex::detail::assert_compile_time_legths<
@ -287,7 +287,7 @@ struct ctti {
|| defined(__DMC__)
return boost::typeindex::detail::skip_begining< sizeof(__PRETTY_FUNCTION__) >(__PRETTY_FUNCTION__);
#else
boost::typeindex::detail::failed_to_get_function_name();
boost::typeindex::detail::failed_to_get_function_name<T>();
return "";
#endif
}