diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index d222ccb..edd26e0 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -3899,7 +3899,6 @@ void writeThrowExceptions( std::ostream & os, EnumData const& enumData) os << R"( VULKAN_HPP_INLINE void throwResultException( Result result, char const * message ) { - assert ( static_cast(result) < 0 ); switch ( result ) { )"; diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 68a3474..84c2777 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -819,7 +819,6 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_INLINE void throwResultException( Result result, char const * message ) { - assert ( static_cast(result) < 0 ); switch ( result ) { case Result::eErrorOutOfHostMemory: throw OutOfHostMemoryError ( message );