Add is_error_code_enum only if VULKAN_HPP_NO_EXCEPTIONS is not defined. (#471)

This commit is contained in:
Andreas Süßenbach 2020-01-06 15:55:31 +01:00 committed by Markus Tavenrath
parent 4320950db1
commit 0b3af1ee76
2 changed files with 4 additions and 0 deletions

View File

@ -5212,12 +5212,14 @@ static const std::string constExpressionArrayCopy = R"(
)";
static const std::string is_error_code_enum = R"(
#ifndef VULKAN_HPP_NO_EXCEPTIONS
namespace std
{
template <>
struct is_error_code_enum<VULKAN_HPP_NAMESPACE::Result> : public true_type
{};
}
#endif
)";
static const std::string structResultValue = R"(

View File

@ -11964,12 +11964,14 @@ namespace VULKAN_HPP_NAMESPACE
#endif /*VK_USE_PLATFORM_XLIB_KHR*/
} // namespace VULKAN_HPP_NAMESPACE
#ifndef VULKAN_HPP_NO_EXCEPTIONS
namespace std
{
template <>
struct is_error_code_enum<VULKAN_HPP_NAMESPACE::Result> : public true_type
{};
}
#endif
namespace VULKAN_HPP_NAMESPACE
{