Skip to main content
The 2024 Developer Survey results are live! See the results

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
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::...
Paul Grinberg's user avatar
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 ...
Nemo's user avatar
  • 71k
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 ...
Klaus's user avatar
  • 25.3k
-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() { ...
Luigsech Ingemar's user avatar
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 ...
zephod's user avatar
  • 21
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 ...
Luigsech Ingemar's user avatar
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 ...
SagunKho's user avatar
  • 1,033
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 ...
mike's user avatar
  • 448
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; ...
CforLinux 's user avatar
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> ...
Alireza Abbasi's user avatar
-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 ...
SagunKho's user avatar
  • 1,033
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 ...
Андрей Тернити's user avatar
-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 ...
Ivan Stimac's user avatar
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 ...
SagunKho's user avatar
  • 1,033
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 ...
Hossam Alzomor's user avatar

15 30 50 per page
1
2 3 4 5
1862