Opened 13 years ago

Closed 13 years ago

#3903 closed Patches (invalid)

Duplicate include in asio/error.hpp

Reported by: Yuriy A. Krasnoschek <aka.rider@…> Owned by: chris_kohlhoff
Milestone: Boost 1.43.0 Component: asio
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

boost/asio/detail/push_options.hpp is included twice

Attachments (1)

error.patch (364 bytes ) - added by Yuriy A. Krasnoschek <aka.rider@…> 13 years ago.

Download all attachments as: .zip

Change History (2)

by Yuriy A. Krasnoschek <aka.rider@…>, 13 years ago

Attachment: error.patch added

comment:1 by chris_kohlhoff, 13 years ago

Resolution: invalid
Status: newclosed

The include is correct. The push_options.hpp and pop_options.hpp headers are used in matched pairs. In this case, one pair for the whole file, and one for the non-asio headers.

The reason for wrapping the non-asio headers is now mostly historical I think. Some headers supplied by Borland compilers would change alignment options and not restore them.

Note: See TracTickets for help on using tickets.