Skip to content

Conversation

@NotfriendAtAll
Copy link

The source code in this repository is generated from an upstream repository at https://github.com/chriskohlhoff/asio.

For historical reasons, the old examples are commented out (not deleted) so that other readers can still reference them.

Rationale

  • API Compatibility: The io_context allocator constructor was removed in Boost 1.87+ but examples still reference it

  • Modern C++ Standards: std::aligned_storage is deprecated in C++23

  • Best Practices: Handler-level allocation remains the recommended approach for performance optimization

  • User Experience: Prevents compilation errors and confusion for users following official examples

Testing

  • Verified examples compile with Boost 1.89+

  • Confirmed compatibility with C++17, C++20, and upcoming C++23 standards

  • Ensured handler allocation functionality remains intact

Please consid
屏幕截图 2025-10-20 222351
er raising new pull requests at https://github.com/chriskohlhoff/asio/pulls.

@NotfriendAtAll
Copy link
Author

Sorry about this information
Related Issues
Boost version compatibility notes

C++23 deprecation of std::aligned_storage

Documentation synchronization with API changes

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.

1 participant