Commit 21224324 authored by David Gobbi's avatar David Gobbi
Browse files

Ensure that stream operator parameter is const.

The python wrappers cannot successfully wrap a C++ stream operator
if the second parameter (i.e. the object to be printed) is a non-const
reference.
parent d0fb64a3
......@@ -122,6 +122,7 @@ static void vtkWrapPython_PrintProtocol(
(func->Parameters[1]->Type & VTK_PARSE_BASE_TYPE) ==
VTK_PARSE_OBJECT &&
(func->Parameters[1]->Type & VTK_PARSE_POINTER_MASK) == 0 &&
!vtkWrap_IsNonConstRef(func->Parameters[1]) &&
strcmp(func->Parameters[1]->Class, data->Name) == 0)
{
info->has_print = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment