Skip to content
Snippets Groups Projects
Commit 2ac06c6b authored by David Gobbi's avatar David Gobbi
Browse files

Resolve Python ambiguity for sequence objects

VTK has some overloaded methods like the following:
   void SetColor(const vtkColor4d& color);
   void SetColor(const double color[4]);
Since vtkColor4d and similar objects can be indexed as sequences,
they can satisfy both overloads.  This fix penalizes the second
overload, so that the first overload (the one that specifies the
object type) is preferred.  Without this fix, the wrappers report
an overload resolution ambiguity and raise a TypeError.
parent b4ca40a7
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment