[ITK] Deprecate Warning with VS2016

Imre Goretzki goretzki.imre at gmail.com
Sat Jun 3 03:02:53 EDT 2017


Hey guys,

my VS2015 shows some warnings on using ItkImageFileReader 
(itkImageFileReader.hxx(441)). I currently use ITK 4.10.

Exact warning:
  warning C4996: 'std::copy::_Unchecked_iterators::_Deprecate': Call to 
'std::copy' with parameters that may be unsafe - this call relies on the 
caller to check that the passed values are correct. To disable this 
warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use 
Visual C++ 'Checked Iterators'

compiling function template in 
[itk\src\modules\io\imagebase\include\itkImageFileReader.hxx(441)]
[...] "_OutIt *std::copy<const unsigned int*,unsigned 
int*>(_InIt,_InIt,_OutIt)".
1>          with
1>          [
1>              _OutIt=unsigned int *,
1>              _InIt=const unsigned int *
1>          ]

Greetings,
Imre


More information about the Community mailing list