Questions tagged [boost]
Boost is a large collection of high-quality libraries intended for use in C++. Boost is free, and is often considered a "second standard library".
boost
27,916
questions
0
votes
1
answer
20
views
Boost Beast Websocket verify client certificate more than once on connection
I have a Boost Beast asio based websocket server, which (in abbreviated form) starts like this
ssl_context_.set_options(
boost::asio::ssl::context::default_workarounds |
boost::asio::ssl::...
1
vote
0
answers
41
views
TOMS 748 - "the bounds given must bracket a single root"?
I have a cubic equation f(x)=0 which I need to solve numerically to within some tolerance.
I already have values a and b such that f(a) and f(b) have opposite signs; i.e. the interval [a,b] is known ...
0
votes
0
answers
16
views
[boost::ext]sml understanding how the transition table syntax works
I play around a bit with [boost::ext]sml
The question is not how I can create and run state machines, it looks easy. But I want to know HOW this machinery is implemented and how it can work with the ...
-1
votes
0
answers
44
views
How to debug hanging notify_all() call in linux [closed]
I have an incidence where notify_all() does not seem to exit properly. Based on this answer notify_all() should return in any case.
I have producer code in the following form:
void producer() {
...
1
vote
1
answer
31
views
HippoMocks: mocking boost::chrono::steady_clock::now
I have some code:
boost::system::error_code clock_error;
const boost::chrono::steady_clock::time_point START =
boost::chrono::steady_clock::now(clock_error);
and I want to mock the now() function so ...
0
votes
0
answers
36
views
Correct use of boost notify_all in interprocess communication on linux kernels [duplicate]
tl;dr should boost notify_all() be used before or after releasing the lock?
Wikipedia has this comment on signal (in my view similar to broadcast):
it is often also acceptable to release the lock ...
1
vote
1
answer
20
views
boost::mysql error on destroying the connection object
I'm using Boost.MySQL library from the boost packages for c++. I have encountered an error when creating and destroying a database connection using local io_context and ssl_contexts.
Please see the ...
1
vote
1
answer
46
views
How to match strings having optional group and not containing specific group?
How to match the following cases with regex:
XYZABC
ABC
but not these:
XYZ*ABC
*ABC
in order to capture the ABC part, which can be anything, including a (second) *?
I've tried the following, but it ...
1
vote
1
answer
50
views
C++ incomplete type used in nested name specifier when using boost::multi_index
I have the following files:
"declaration.hpp"
namespace ns {
class Derived;
using DerivedPtr = std::unique_ptr<Derived>;
}
"Base.hpp"
namespace ns {
class User;
...
1
vote
1
answer
90
views
How can decrease time of creating and insert in boost::interprocess::map?
In the below code I unpack a msgpack file to std::map. The duration of this process is almost 85 seconds.
#include <map>
#include <vector>
#include <string>
#include <iostream>
...
-3
votes
0
answers
37
views
Memory Leaks found in boost logger C++ [duplicate]
I have a client/server app, I'm using Dr.Memory to debug and find mem leaks. The issue is that there are too many from the logger i've created for my application. Find the minimum reproducible example ...
1
vote
1
answer
36
views
Building Boost with crc library only
I want to build boost with crc library only, how to build in my case? I get err on Ubuntu 24
sudo apt-get install build-essential g++ autotools-dev libicu-dev libbz2-dev libboost-all-dev
git clone ...
-1
votes
0
answers
62
views
Segmentation fault in Debug mode with boost::system::error_code
I had a task to investigate bug (segmentation fault) in our component that happened when it was compiled in Debug mode (component worked when compiled in Release mode). I found the problem in ...
0
votes
0
answers
61
views
Invalid Heap Arguments errors when using components from Boost Libraries in C++?
I'm using many boost libraries in my software application and After running a test case with Dr. Memory here there are 81 Invalid Heap argument errors mostly emitted from boost::log library and its ...
1
vote
1
answer
37
views
_MSC_VER value with multi Visual Studio installations
I have a C++ Project which uses boost libs, the project was built on MS visual studio 2019 using Boost_vc142_rev.1.79.
Now I moved to Visual Studio 2022 so I switched to boost_vc143_rev.1.85.
and ...