From 6243e6deaa528a6ff3c2f69ef3fd0fe7ee40b16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Mon, 6 Feb 2017 13:26:43 +0100 Subject: [PATCH] Made UniqueHandle constructor explicit. (#72) Fix issue #67 --- VulkanHppGenerator.cpp | 2 +- vulkan/vulkan.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 39b9da8..cca76f9 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -450,7 +450,7 @@ std::string const uniqueHandleHeader = { R"( class UniqueHandle { public: - UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() ) + explicit UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() ) : m_value( value ) , m_deleter( deleter ) {} diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index f0cfd9e..ab45590 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -333,7 +333,7 @@ namespace vk class UniqueHandle { public: - UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() ) + explicit UniqueHandle( Type const& value = Type(), Deleter const& deleter = Deleter() ) : m_value( value ) , m_deleter( deleter ) {}