[Insight-users] Visual Studio .net 2003 (7.1)

p.klotz@icoserve.com p . klotz at icoserve . com
Thu, 31 Jul 2003 15:37:29 +0200


--0__=4EBBE7E7DFDB43628f9e8a93df938690918c4EBBE7E7DFDB4362
Content-type: text/plain; charset=US-ASCII





Hello John

> after making quite a few tweaks, main culprits being
>
> itkFEMPArray.h
> itk_hashtable.h

Sounds very familiar. The casting problem in itkFEMPArray.h and the
typename issue in itk_hashtable.h.

The problem in itkImageAdaptor.h looks quite like a compiler bug. It can be
reproduced with the attached test program. I already got a confirmation for
it in one of those Microsoft VC++.NET newsgroups at www.microsoft.com.
The test program compiles without problems with gcc 3.2.2, Borland C/C++
5.5.1 and Comeau 4.3.1.

Best regards, Peter.

(See attached file: array_overload.cpp)
--0__=4EBBE7E7DFDB43628f9e8a93df938690918c4EBBE7E7DFDB4362
Content-type: application/octet-stream; 
	name="array_overload.cpp"
Content-Disposition: attachment; filename="array_overload.cpp"
Content-transfer-encoding: base64

Y2xhc3MgQQp7CnB1YmxpYzoKICAgIHN0YXRpYyBjb25zdCBpbnQgbV92YWx1ZTsKfTsKCmNvbnN0
IGludCBBOjptX3ZhbHVlPTU7Cgp0ZW1wbGF0ZTxjbGFzcyBUPgpjbGFzcyBCCnsKcHVibGljOgog
ICAgdmlydHVhbCB2b2lkIGYoY29uc3QgZG91YmxlIHhbVDo6bV92YWx1ZV0pOwogICAgdmlydHVh
bCB2b2lkIGYoY29uc3QgZmxvYXQgeFtUOjptX3ZhbHVlXSk7Cn07Cgp0ZW1wbGF0ZTxjbGFzcyBU
Pgp2b2lkIEI8VD46OmYoY29uc3QgZG91YmxlW1Q6Om1fdmFsdWVdKQp7Cn0KCnRlbXBsYXRlPGNs
YXNzIFQ+CnZvaWQgQjxUPjo6Zihjb25zdCBmbG9hdFtUOjptX3ZhbHVlXSkKewp9CgppbnQgbWFp
bih2b2lkKQp7CiAgICBCPEE+IGJhOwogICAgZmxvYXQgdlsyXT17MS4wLDIuMH07CiAgICBiYS5m
KHYpOwogICAgcmV0dXJuIDA7Cn0K

--0__=4EBBE7E7DFDB43628f9e8a93df938690918c4EBBE7E7DFDB4362--