diff --git a/traits.hpp b/traits.hpp index 8490e20..94e97c6 100644 --- a/traits.hpp +++ b/traits.hpp @@ -495,8 +495,8 @@ namespace cruft::vk { template <> struct life_traits { - static decltype(vkCreateDebugReportCallbackEXT) *create; - static decltype(vkDestroyDebugReportCallbackEXT) *destroy; + static constexpr auto& create = vkCreateDebugReportCallbackEXT; + static constexpr auto& destroy = vkDestroyDebugReportCallbackEXT; };