asio icon indicating copy to clipboard operation
asio copied to clipboard

Asio C++ Library

Results 318 asio issues
Sort by recently updated
recently updated
newest added

I have a simple demo here on windows: ``` void async_append(const std::string& data, const std::function& handler) { try { boost::asio::stream_file file( m_ctx, *m_path, boost::asio::stream_file::append); if (file.is_open()) { file.async_write_some( boost::asio::const_buffers_1(data.data(), data.size()),...

This adds a more general approach, to check for c++20 coroutines, which takes the feature test macros into account, defined since c++20: Proposal: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0912r5.html cppreference: https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros#C.2B.2B20 I've kept the old...

When compiling ASIO via clang-cl version 15.0 on Windows, the ASIO config sets `ASIO_HAS_CO_AWAIT` to zero, even if clang actually has it. The reason is in [line 2024](https://github.com/boostorg/asio/blob/0af7858e7b5603a2415a30b69e16c7ef1d47a5e9/include/boost/asio/detail/config.hpp#L2045-L2070): `if (_MSC_VER...

My environment: Visual Studio 2015 Update 2 (Version 14.0.25123.00) I have the following compilation error when calling the boost::asio::post: ``` c:\local\boost_1_80_0\boost\asio\impl\post.hpp(59): error C2752: 'boost_asio_prefer_fn::call_traits': more than one partial specialization matches...

"refactored_echo_server.cpp" example crashes when used with clang-cl + libcxx (cross-compilation). I got a fix, but let me first describe details. Crash backtrace (not demangled, because gdb used): ``` 1 ?push_frame...

Edit: Long story short, boost::asio seems to lack https://github.com/chriskohlhoff/asio/commit/6d51490576ef219f3bc6dda3baecc3a9efe49dd5, I guess because of https://github.com/chriskohlhoff/asio/blob/147f7225a96d45a2807a64e443177f621844e51c/asio/include/asio/detail/config.hpp#L38. Given the following cmake project [asio_config_test.tar.gz](https://github.com/chriskohlhoff/asio/files/9757276/asio_config_test.tar.gz) we may end up with asio::aligned_new() behaviour not matching asio::aligned_delete()....

The C++ standard doesn't guarantee the order of evaluation of function arguments. In the following code, the `buffers_` member of `write_op` is being passed as the first function argument to...

I get `AddressSanitizer: attempting free on address which was not malloc` with the following code: Error is reproducible in Godbolt https://godbolt.org/z/n778nbenj. It has something to do with cancellation exception thrown...

I get `AddressSanitizer: attempting free on address which was not malloc` with the following code: Error is reproducible in [Godbolt](https://godbolt.org/z/9T8sonvhd) It doesn't happen if we remove the captures. ```C++ #include...

While looking at the documentation examples for the "echo" client and servers, specifically [cpp11](https://www.boost.org/doc/libs/1_80_0/doc/html/boost_asio/examples/cpp11_examples.html) and [cpp14](https://www.boost.org/doc/libs/1_80_0/doc/html/boost_asio/examples/cpp14_examples.html), I found that both of these directories claimed to have links to the echo...