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

tapash tapash1991 at gmail.com
Fri Jul 21 02:30:18 EDT 2017


/** 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.


More information about the Insight-users mailing list