Fix: compilation error with gcc and clang: error: no matching member function for call to 'set' #5
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: blender/cycles#5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Pierre-Pontier/cycles:fix/node_set_enum_sfinae"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I use Mageia 8 and compile with gcc 10.4.0 and clang 11.0.1. I use c++17.
When I compile cycles outside my project, I don't have any compilation problems.
When I compile it in my project, the SFINAE signature of the Node::Set function does not identify enumerations. So I've modified it so that it compiles.
This line:
template<class ValueType, typename std::enable_if_t<std::is_enum_v<ValueType>> * = nullptr>
has become:
template<class ValueType, std::enable_if_t<std::is_enum_v<ValueType>, bool> = true>
Here's the substitution failure message under gcc (under clang it's the same):
Thanks!