[vtkusers] Error C2660: 'vtkObject::operatpr new': do not take 3 patameters
Cory Quammen
cory.quammen at kitware.com
Wed Apr 27 09:14:58 EDT 2016
>From the code you have shared, I do not see what would cause the error
you report.
Could you post the header file and the portion of the code in the
implementation file (.cxx) leading up to and including
vtkStandardNweMacro?
Thanks,
Cory
On Wed, Apr 27, 2016 at 4:19 AM, 徐志 華 <zionman.hsu at gmail.com> wrote:
> Hi,
> I had a class derived from vtkInteractorStyleRubberBandPick defined as
> following:
>
> class myAreaSelector : public vtkInteractorStyleRubberBandPick
> {
> public:
> vtkTypeMacro(myAreaSelector, vtkInteractorStyleRubberBandPick);
> static myAreaSelector *New();
> .....
> };
>
> And implemented this new function with:
>
> vtkStandardNewMacro(myAreaSelector);
>
> Which leads to error C2660 : 'vtkObject::operator new' not take 3 parameters
>
> Is there any wrong doings with this implementation?
>
> Any suggestion to overcoming this error message is welcome.
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
More information about the vtkusers
mailing list