Fix bug with enum class in event

This commit is contained in:
Georg Hagen
2025-07-08 22:36:22 +02:00
parent d81d6ddeef
commit 0ee574e8ee
2 changed files with 5 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenVulkano
public:
// Keep this in sync with all implementations! synctag: NamedEventProcessor_Parameters_SYNC_TAG
typedef std::variant<std::string, bool, int, float, double, UUID> Parameters;
typedef std::variant<std::string, bool, int, uint32_t, float, double, UUID> Parameters;
static bool HasProcessor() { return !processors.empty(); }
@@ -237,8 +237,8 @@ namespace OpenVulkano
{
std::vector<INamedEventProcessor::Parameters> attributes;
attributes.reserve(sizeof...(Arguments));
if constexpr (!std::conjunction_v<std::is_enum<std::remove_reference_t<Arguments>>...>)
{
if constexpr (!std::disjunction_v<std::is_enum<std::remove_reference_t<Arguments>>...>)
{ // Express if no enum class is contained in the arguments
(attributes.emplace_back(args), ...);
}
else