Hello Luis, You did not include what the the previous conversation was really about or a link to to. I will assume that it's about the requirement for the Set/Get Macro to have the operator<<. I see two choices.
1) Manually implement the method or create your own macro for this case. 2) In a restricted namespace overload the operator yourself as a non-member function. I did a similar thing here: https://github.com/SimpleITK/SimpleITK/blob/master/Code/Common/include/sitkTemplateFunctions.h#L47 Hope that help, Brad On Sep 28, 2012, at 12:06 PM, "Gutierrez, Luis" <[email protected]> wrote: > Was this thread ever resolved? The last post I found was on 2011-Apr-15, and > it didn’t really resolve anything. > > I’m a relative newbie with ITK, and I received some code written by an > ex-employee who’s not available to answer our questions. In his home-built > algorithm (using ITK 3.17), he has a class, derived from itk::Object, in > which he uses itkSetMacro for variables of type std::vector. As far as I can > tell, he got around the compile errors related to << by setting the > preprocessor flag NDEBUG instead of _DEBUG. That seems like an ugly hack to > me, and I’m wondering what would be the preferred approach using ITK coding > style guidelines. > > Thanks in advance for your help. > > --Luis > > Luis F. Gutiérrez > Senior Member Research Staff > Interventional Guidance Technology > Philips Research North America > > 345 Scarborough Road > Briarcliff Manor, NY 10510 > Tel: +1 914 945 6097 > Fax: +1 914 945 6330 > Cell: +1 201 927 6894 > > > The information contained in this message may be confidential and legally > protected under applicable law. The message is intended solely for the > addressee(s). If you are not the intended recipient, you are hereby notified > that any use, forwarding, dissemination, or reproduction of this message is > strictly prohibited and may be unlawful. If you are not the intended > recipient, please contact the sender by return e-mail and destroy all copies > of the original message. > _______________________________________________ > 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://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://www.itk.org/mailman/listinfo/insight-developers
_______________________________________________ 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://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://www.itk.org/mailman/listinfo/insight-developers
