我下载了libtins并设置了一个新项目来搞乱它。
当我尝试编译示例代码时,我收到以下错误:
main.cpp
c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3017): error C4996: 'std::_Equal1': Function call 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'
c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3002) : see declaration of 'std::_Equal1'
c:\users\admin\documents\libtins-latest-win32\libtins-latest-win32\include\ipv6_address.h(140) : see reference to function template instantiation 'bool std::equal<Tins::IPv6Address::const_iterator,Tins::IPv6Address::const_iterator>(_InIt1,_InIt1,_InIt2)' being compiled
with
[
_InIt1=Tins::IPv6Address::const_iterator,
_InIt2=Tins::IPv6Address::const_iterator
]
我添加了定义以禁用此警告,但它不起作用。当我尝试编译时,它仍然给我这个错误
这是错误https://github.com/mfontanini/libtins/blob/master/include/ipv6_address.h#L140
中引用的代码有人可以帮助我,我不知道该怎么办?