Opened 7 years ago

Last modified 7 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 by mikael.olenfalk@…, 7 years ago

Here is a pull request which fixes the issue:

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

in reply to:  1 comment:2 by fab@…, 7 years ago

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 by anonymous, 7 years ago

because BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT redefine,so add undef # undef BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT

Note: See TracTickets for help on using tickets.