Skip to content

Including Boost.Asio before cpp-netlib causes compile error #634

@amerry

Description

@amerry

If I do something like

#include <boost/asio/ip/address.hpp>
#include <boost/network.hpp>

then compilation fails because the references to things like asio::io_service in cpp-netlib resolve to the boost::asio namespace (since the code is in the boost::network namespace).

While I can just reorder the headers, this is still not an ideal situation. Presumably, this could be solved by using absolute references, like ::asio::io_service.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions