Opened 4 years ago

Closed 4 years ago

#13595 closed Bugs (duplicate)

Compiling Boost with VS2017 (15.7.1) generates the Warning C5032.

Reported by: alexander.frank.lehmann@… Owned by:
Milestone: To Be Determined Component: None
Version: Boost 1.67.0 Severity: Problem
Keywords: Cc:

Description

When compiling iterator_range_core.hpp and has_plus_assign.hpp with "Microsoft Visual Studio Professional 2017 Version 15.7.1" the warning:

warning C5032: detected #pragma warning(push) with no corresponding #pragma warning(pop) compiling ...

is generated. The warnings come from from this codelines:

has_plus_assign.hpp line 30:

29 #elif defined(BOOST_MSVC)
30 #   pragma warning ( push )
31 #   pragma warning ( disable : 4018 4244 4547 4800 4804 4805 4913 4133)
32 #   if BOOST_WORKAROUND(BOOST_MSVC_FULL_VER, >= 140050000)
33 #       pragma warning ( disable : 6334)
34 #   endif
35 #endif

iterator_range_core.hpp line 21

20 #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
21     #pragma warning( push )
22     #pragma warning( disable : 4996 )
23 #endif

Change History (3)

comment:1 by Kohei Takahashi, 4 years ago

You should break this issue into two to specify corresponding component(library); has_plus_assign came from type_traits and iterator_range_core came from range.

Last edited 4 years ago by Kohei Takahashi (previous) (diff)

in reply to:  1 comment:2 by anonymous, 4 years ago

Replying to Kohei Takahashi:

You should break this issue into two to specify corresponding component(library); has_plus_assign came from type_traits and iterator_range_core came from range.

I created the tickets #13601 and #13602 out of this one.

comment:3 by Mateusz Loskot, 4 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.