Skip to content

Guard asio-standalone.h against multiple inclusion - #33

Merged
dprokoptsev merged 1 commit into
hudson-trading:masterfrom
fallintoplace:fix/asio-standalone-include-guard
Aug 12, 2026
Merged

dprokoptsev merged 1 commit into
hudson-trading:masterfrom
fallintoplace:fix/asio-standalone-include-guard

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Problem

corral/asio-standalone.h has no include guard. Including it more than once, directly or through separate dependencies, redefines the standalone Asio adapter and its specializations.

Change

  • Add #pragma once, consistent with the other Corral headers.
  • Include the header twice in the existing standalone-Asio test translation unit.

Validation

Built and ran corral_asio_test with both Boost.Asio and standalone Asio enabled: 10 test cases and 27 assertions passed.

@dprokoptsev
dprokoptsev merged commit effd03a into hudson-trading:master Aug 12, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants