Re: [ITK-users] Fwd: error in ItkConceptchecking.h

tapash <[email protected]>
Newsgroups gmane.comp.lib.itk.user
Message-ID <[email protected]>
/** Concept requiring T to be integer. */

template< typename T >
struct IsInteger {
  typedef IsInteger Self;
  itkStaticConstMacro(Integral, bool, NumericTraits< T >::is_integer);
  struct Constraints {
    typedef Detail::UniqueType_bool< true >                            
TrueT;
    typedef Detail::UniqueType_bool< itkGetStaticConstMacro(Integral) >
IntegralT;
    void constraints()
    {
      *IntegralT a = TrueT();
*      Detail::IgnoreUnusedVariable(a);
    }
  };

  itkConceptConstraintsMacro();
};

 the line in the bold   is throwing this error......
Error	2	error C2440: 'initializing' : cannot convert from
'itk::Concept::Detail::UniqueType_bool<true>' to
'itk::Concept::Detail::UniqueType_bool<false>'
c:\insighttoolkit-4.6.0\modules\core\common\include\itkConceptChecking.h	730	




--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/error-in-ItkConceptchecking-h-tp7590051p7590054.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.