[vtk-developers] Adding support for a macro in wrapper

David Lonie david.lonie at kitware.com
Wed Mar 11 15:47:34 EDT 2015


On Wed, Mar 11, 2015 at 3:46 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> On Wed, Mar 11, 2015 at 1:25 PM, David Lonie <david.lonie at kitware.com>
> wrote:
>>
>>
>> I've actually already stripped it out in favor of the much simpler
>> "using" method. Good to know that simple macros should work -- it's
>> entirely possible there was some little bug hidden in my macro that was
>> throwing off the wrappers ;)
>>
>> Perhaps it was the pattern:
>>
>> VTK_LEGACY(virtual double* GetBounds()) \
>> { \
>>   ... \
>> }
>>
>
> It's possible... VTK_LEGACY undergoes special handling by the wrappers, it
> isn't simply expanded.  I'd still like to see the full macro plus its usage
> so that I can find out why the wrappers had trouble with it.
>
>
>> Anyway, it looks like this is all working now :) Thanks for the replies!
>>
>
> The old GetBounds() method might be hidden in the wrapped classes due to
> "using" being ignored.
>

I'll be sure to test this before I merge -- thanks for the heads up.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150311/c64adef1/attachment.html>


More information about the vtk-developers mailing list