[ITK] [ITK-users] Smartpointer as a default parameter for a function

ahmed at mufradat.com ahmed at mufradat.com
Tue Jul 22 03:37:05 EDT 2014


Hello All,

Suppose I have class like

class A{
     public:
     A(int a, ImageType::Pointer ptr){
         // whatever!
     }
};

My question is, what's the default value for that ptr? I'd like to be 
able to create an instance of that class using

A myA(5);

so for the definition of the constructor of A:

A(int a, ImageType::Pointer ptr = WHAT?)

Best regards,
Ahmed
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list