[Insight-developers] Disable concept checking for a specific file?
Luis Ibanez
luis.ibanez at kitware.com
Fri Dec 31 08:09:03 EST 2010
Hi Dan,
I'm curious about the class in which you are finding
necessary to disable the concept checking.
Maybe what we should do is to fix the concept check
in that class, so it reflects the conditions of actual use.
Could you please elaborate ?
Thanks
Luis
--------------------------------------------------------------------
On Thu, Dec 30, 2010 at 2:25 AM, Dan Mueller <dan.muel at gmail.com> wrote:
> Hi Insight Developers,
>
> Is there a way to disable concept checking for a specific file?
>
> In general I want concept checking turned on (i.e. I don't want to
> globally disable concept checking using the CMake option). However I
> have a specific file(s) for which I want to disable concept checking
> (it fails the concept check, but the failure is acceptable). I know, I
> know -- this isn't the intent of concept checking, but hey, I want to
> do it anyway :D
>
> I can force concept checking to be disabled from a particular point
> onwards, but I can't figure out how (if at all possible) I can
> "re-enable" it. Is this possible?
>
> Example:
>
> // Files I want concept checked
> #include "itkAFileToBeConceptChecked.h"
> #include "itkAnotherFileToBeConceptChecked.h"
>
> // Force disabling of concept checking
> #undef ITK_USE_CONCEPT_CHECKING
> #undef itkConceptConstraintsMacro
> #undef itkConceptMacro
> #define itkConceptConstraintsMacro()
> #define itkConceptMacro(name, concept) enum { name = 0 }
>
> // Files I DO NOT want concept checked
> #include "itkFileNotToBeConceptChecked.h"
>
> // TODO: I should re-enable concept checking <<< What to do?
>
> // Files I want concept checked
> #include "itkYetAnotherFileToBeConceptChecked.h"
>
> Thanks for any ideas.
>
> Cheers, Dan
> _______________________________________________
> 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