[Insight-developers] itkIPLCommonImageIO MSVC Warning 4284

Julien Jomier jjomier at cs.unc.edu
Sun, 25 Jan 2004 19:10:53 -0500


Hi,

This is not the first time I'm getting this warning with MSVC 6 when
compiling ITK:

[snip]

itkIPLCommonImageIO.cxx
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\list(68) : warning
C4284: return type for 'std::list<class itk::IPLFileSortInfo *,class
std::allocator<class itk::IPLFileSortInfo *> >::const_iterator::operator =
->'
is 'class itk::IPLFileSortInfo
 *const * ' (ie; not a UDT or reference to a UDT.  Will produce errors =
if
applied using infix notation)
        E:\Workspace\Insight\Code\IO\itkIPLFileNameList.h(98) : see
reference to class template instantiation 'std::list<class
itk::IPLFileSortInfo *,class std::allocator<class itk::IPLFileSortInfo =
*> >'
being compiled
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\list(103) : =
warning
C4284: return type for 'std::list<class itk::IPLFileSortInfo *,class
std::allocator<class itk::IPLFileSortInfo *> >::iterator::operator ->' =
is
'class itk::IPLFileSortInfo ** '
 (ie; not a UDT or reference to a UDT.  Will produce errors if applied =
using
infix notation)
        E:\Workspace\Insight\Code\IO\itkIPLFileNameList.h(98) : see
reference to class template instantiation 'std::list<class
itk::IPLFileSortInfo *,class std::allocator<class itk::IPLFileSortInfo =
*> >'
being compiled

[snip]

Should we disable this warning (4284) for MSVC or try to fix it instead?

Julien