Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

I'm using cmake 4.1 with boost 1.88.0. I set BOOST_ROOT to C:\boost_1_88_0 The problem happens because cmake finds BoostConfig.cmake in C:\boost_1_88_0\tools\cmake\config, which calls find_package() ...
Steven Schoch's user avatar
2 votes
1 answer
58 views

I have a Websocket class that connects asynchronously using Boost.Asio and Boost.Beast. The following code was working fine with Boost 1.78, but after updating to the latest Boost version, I now get a ...
Rutvik Parekh's user avatar
4 votes
1 answer
112 views

I have the following program that just runs a timer for 5 seconds and has a signal handler. #include <boost/asio.hpp> #include <chrono> #include <iostream> #include <signal.h> ...
Pavel Krasnopevtsev's user avatar
0 votes
1 answer
92 views

I have vcpkg 2025-09-03 installed and CMake 4.1.2 installed. Now I want to install Boost Date-Time .\vcpkg.exe install boost-date-time And check if boost-date-time is installed. PS C:\Users\negrå\...
euraad's user avatar
  • 2,887
4 votes
1 answer
94 views

I am getting a warning (turned into an error with -Werror) about missing-field-initializers when using designated initializers for the fields in my struct, because I'm not initializing fields in a 3rd ...
Steve Lorimer's user avatar
2 votes
1 answer
125 views

Suppose I accept a socket by calling async_accept like this acceptor.async_accept([](const boost::system::error_code& ec, boost::asio::ip::tcp::socket sock) { if (ec) return; auto sess = std:...
Joe J's user avatar
  • 1,349
0 votes
0 answers
42 views

I have some courtine tasks that return an asio::awaitable<...> - possibly different types (but yes, I know what they supposed to return). I want to run them in parallel and wait for all of them ...
Karoly Horvath's user avatar
0 votes
0 answers
99 views

I'm trying to build boost on windows (currently windows 10 because my pc sadly doesn't have the tpm) with clang from msys2/mingw64/ucrt. To be clear, I have these infos from my current clang: clang++ -...
crillion's user avatar
  • 380
0 votes
0 answers
222 views

I'm trying to use asio::co_spawn with boost::future in Thread library, such that I could chain the co_routine task with then() function. But the problem is asio::use_future only generates std::future. ...
YzEdwin's user avatar
  • 21
2 votes
1 answer
156 views

I am reading a http::request<http::string_body> request from the network using boost::beast, which is of type multipart/form-data. The request contains files and strings. How can I get each part ...
Joe J's user avatar
  • 1,349
4 votes
1 answer
496 views

Consider the following struct: struct Particle { float scale; float opacity; float rotation; }; I want the following to compile: static_assert(indexOf<&Particle::scale>() == 0); ...
Vittorio Romeo's user avatar
7 votes
2 answers
177 views

I'm using the boost mysql library in a project. I need to use boost::mysql::datetime (datetime) to represent timestamps. A datetime value can be constructed from a boost::mysql::datetime::time_point. ...
pacmaninbw's user avatar
0 votes
1 answer
48 views

I can't compile the boost library on Windows 11, specifically serialization which is not header-only, for use with mex in MATLAB. I am compiling boost with .\bootstrap.bat; .\b2.exe link=static ...
dogAwakeCat's user avatar
3 votes
1 answer
132 views

I have two threads and I need to run a task from the first thread but in such a way that the task is executed in the second thread. For this I decided to use boost::asio::post, but I'm not sure if it ...
Joe J's user avatar
  • 1,349
3 votes
1 answer
99 views

I have a websocket server where I call websocket::stream::async_accept to perform a handshake with the client. I also set a decorator to modify the headers like this conn->get_websocket_stream()....
Joe J's user avatar
  • 1,349
4 votes
1 answer
63 views

I create http::response_parser<http::buffer_body> and set header_limit and body_limit like this auto parser = std::make_shared<http::response_parser<http::buffer_body>>(); parser->...
Joe J's user avatar
  • 1,349
1 vote
1 answer
125 views

I want to close the TLS connection gracefully. So before closing the socket I call ssl::stream::shutdown. I call ssl::stream::shutdown in the session destructor and at that moment I have no active ...
Joe J's user avatar
  • 1,349
1 vote
1 answer
67 views

I'm trying to bind a WebSocket connection to a specific network interface using Boost.Beast, but the socket keeps using the default interface instead of the specified one. I have a WebSocket client ...
nobody's user avatar
  • 13
3 votes
1 answer
149 views

Is it correct to call ssl::stream::async_shutdown while there are outstanding async_read_some/async_write operations? Should I wait for all async operations to complete before calling ssl::stream::...
Joe J's user avatar
  • 1,349
2 votes
1 answer
87 views

I have made a boost multiindex of my GameObject, and I am trying to loop through and call non const functions on it. And I cannot for the life of me to get boost to stop giving long nasty compiler ...
user904542's user avatar
  • 7,087
1 vote
1 answer
141 views

I want to implement Catmull-Rom interpolation for a time series of data sampled at irregular intervals. I noticed that Boost provides catmull_rom in its interpolation library, and I have tried to use ...
Bill Heitler's user avatar
1 vote
1 answer
96 views

Code firstly, very simple example code: template <typename CompletionToken> decltype(auto) test_initiate(CompletionToken&& token) { return boost::asio::async_initiate<...
Simon. Li's user avatar
  • 441
2 votes
1 answer
118 views

I need to read the response from an HTTP server like this: first call boost::beast::http::async_read_header to get headers, then read the response body (if any). To read the body I use boost::beast::...
Joe J's user avatar
  • 1,349
1 vote
2 answers
84 views

Please note that I am asking about Boost.Parser, not the older Boost.Spirit. I have a reference to a symbols object that I want to use in a parsing rule. I think I want to use a parameter for that, ...
JWWalker's user avatar
  • 22.8k
1 vote
1 answer
159 views

I changed the process::child to process::v1::child. I got an error so i did some research. I found that i should put the Args into an vector of wstring. But that didn't change anything. I did a ...
Christoph Ruhland's user avatar

1
2 3 4 5
563