From 6491b6a7dbe218f07b5da393a0d5c8ef8849c697 Mon Sep 17 00:00:00 2001 From: Pierre Pontier Date: Thu, 22 Jun 2023 20:36:20 +0200 Subject: [PATCH] Fix: compilation error with gcc and clang: error: no matching member function for call to 'set' NODE_SOCKET_API(PassMode, mode) ode.h:109:8: note: candidate template ignored: substitution failure [with ValueType = ccl::PassMode]: conversion from 'int' to 'typename std::enable_if_t> *' (aka 'void *') is not allowed in a converted constant expression void set(const SocketType &input, const ValueType &value) ^ --- src/graph/node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/node.h b/src/graph/node.h index 5b1808224..1e8aa41bf 100644 --- a/src/graph/node.h +++ b/src/graph/node.h @@ -105,7 +105,7 @@ struct Node { /* Implicitly cast enums and enum classes to integer, which matches an internal way of how * enumerator values are stored and accessed in a generic API. */ - template> * = nullptr> + template, bool> = true> void set(const SocketType &input, const ValueType &value) { static_assert(sizeof(ValueType) <= sizeof(int), "Enumerator type should fit int"); -- 2.30.2