[ITK] Deprecate Warning with VS2016

Matt McCormick matt.mccormick at kitware.com
Wed Jun 7 15:47:16 EDT 2017


Hi Imre,

These warnings can safely be ignored / disabled in this case.

HTH,
Matt

On Wed, Jun 7, 2017 at 1:37 PM, Imre Goretzki <goretzki.imre at gmail.com>
wrote:

> Hey Matt,
>
> today I changed my environment from ITK 4-10 / MSVC 2015 to ITK 4-12 /
> MSVC 2017. Warnings still exists.
>
> Greetings
> Imre
>
>
> On 07.06.2017 02:06, Matt McCormick wrote:
>
> Hi Imre,
>
> Please try the recently released ITK 4.12.0.
>
> Cheers,
> Matt
>
> On Sat, Jun 3, 2017 at 3:02 AM, Imre Goretzki <goretzki.imre at gmail.com>
> wrote:
>
>> 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
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>>
>
>
>
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virenfrei.
> www.avg.com
> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_-6035979521261246226_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170607/eb1aa5a9/attachment.html>


More information about the Community mailing list