[Insight-developers] itkSetMacro with STL types

Bill Lorensen bill.lorensen at gmail.com
Thu Apr 14 15:29:47 EDT 2011


You would need to implement <<  for set<int>

On Thu, Apr 14, 2011 at 3:07 PM, David Doria <daviddoria at gmail.com> wrote:
> If I add this to a filter:
> typedef std::set<int> SetType;
> SetType SetVariable;
> itkSetMacro( SetVariable, SetType );
> I get:
> MyImageFilter.h: error: no match for ‘operator<<’ in ‘std::operator<<
> which I believe comes from itkDebugMacro inside of itkSetMacro.
> Is there any easy way to allow this sort of thing?
> Thanks,
>
> David
>
> _______________________________________________
> 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.html
>
> 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
>
>


More information about the Insight-developers mailing list