Fix: compilation error with gcc and clang: error: no matching member function for call to 'set' #5

Manually merged
Brecht Van Lommel merged 1 commits from Pierre-Pontier/cycles:fix/node_set_enum_sfinae into main 2023-06-23 17:05:24 +02:00

1 Commits

Author SHA1 Message Date
6491b6a7db 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<std::is_enum_v<PassMode>> *' (aka 'void *') is not allowed in a converted constant expression
  void set(const SocketType &input, const ValueType &value)
       ^
2023-06-22 20:36:20 +02:00