[Insight-developers] itkDefaultConvertPixelTraits consistency issues

Zachary Pincus zpincus at stanford.edu
Sun Jan 15 00:49:08 EST 2006


>>>
>>> I'm for adding 'signed char' specializations, with 'char' ones
>>> #ifdef-ed
>>> as needed.
>>
>> What sort of #ifdef's do you think might be needed? Should there just
>> be a 'char' traits that specifies whatever it is that the compiler
>> does on that platform, since those are the traits that the IO classes
>> will be compiled with?
>
> What I meant is that some compilers might treat '(un)signed char' and
> 'char' as the same type also for template specializations. In that  
> case,
> presence of both specializations would likely cause a compiler  
> error (or
> at least a warning). In the meantime I found a notice of three
> distinct char types in Bjarne Stroustrup's C++ Glossary
> (http://public.research.att.com/~bs/glossary.html), therefore such
> behavior seems unlikely.


Thanks for looking into this Peter. If there are no objections to the  
proposed fix if adding a signed char specialization, I'll open a bug  
and commit the fix in the next few days.

Zach


More information about the Insight-developers mailing list