Skip to content

Commit e9daad5

Browse files
committed
disable msvc warning 4996
1 parent e4023c0 commit e9daad5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/boost/json/detail/digest.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ digest(ForwardIterator b, ForwardIterator e, std::size_t salt) noexcept
3838
for( ; b != e; std::advance(b, N) )
3939
{
4040
state_type num;
41+
#ifdef _MSC_VER
42+
# pragma warning(push)
43+
# pragma warning(disable: 4996)
44+
#endif
4145
std::copy_n( b, N, reinterpret_cast<unsigned char*>(&num) );
46+
#ifdef _MSC_VER
47+
# pragma warning(pop)
48+
#endif
4249

4350
num *= m;
4451
num ^= num >> r;

0 commit comments

Comments
 (0)