From de9418efe6a6d7b7e4047ffcd1165f1fe0dad362 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 3 Mar 2019 22:12:16 +1100 Subject: [PATCH] traits: Use reference to native DebugReport create/destroy --- traits.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; };