Skip to content
Snippets Groups Projects
Commit faab03a4 authored by Brad King's avatar Brad King
Browse files

vtkDispatcher: Simplify Add<> interface to a single method

The IBM XL compiler cannot choose between the two overloads of the Add<>
method template, producing errors such as:

 1540-0219 (S) The call to "Add<...>" has no best match.

Work around the problem by simplifying the interface to have only a
single Add<> method that internally calls one of two private
AddInternal<> method templates.  Pass an extra "1" argument to select
between "int" and "long" conversions to help the compiler select the
proper overload.  It will choose the int->long conversion of the second
argument only if it cannot match the pointer form of the first argument.

Change-Id: I2f705761526353c0131160df51028365a0d4a70b
parent 6a1b4197
No related branches found
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.
Finish editing this message first!
Please register or to comment