[ITK] [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.
_____________________________________
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


More information about the Community mailing list