Opened 3 years ago

Last modified 3 years ago

#11539 new Bugs

VS2015 warning: macro redefinition

Reported by: anonymous Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.59.0 Severity: Problem
Keywords: warning, vs2015 Cc:

Description

boost/asio/detail/config.hpp(227): warning C4005: 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT': macro redefinition boost/asio/detail/config.hpp(213): note: see previous definition of 'BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT'

Change History (3)

comment:1 Changed 3 years ago by mikael.olenfalk@…

Here is a pull request which fixes the issue:

https://github.com/boostorg/asio/pull/22

comment:2 in reply to:  1 Changed 3 years ago by fab@…

Replying to mikael.olenfalk@…:

Here is a pull request which fixes the issue:

https://github.com/boostorg/asio/pull/22

The fix works as advertised.

comment:3 Changed 3 years ago by anonymous

because BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT redefine,so add undef # undef BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT

Note: See TracTickets for help on using tickets.