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

All Questions

Tagged with
1 vote
0 answers
40 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
43 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 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
29 views

Boost trivial log - custom severity name

I am using the boost trivial log with the default severity levels and I would like to map custom text for those default severity levels (e.g. instead of warning use warn). In my formatter I use <&...
codentary's user avatar
  • 1,145
1 vote
1 answer
45 views

boost::process::async_pipe or pipe for inter process communication

I need to do inter process messaging with named pipes. I know async_pipe can be used for named pipe's. But when i try to use async_pipe my program just stuck in io_context::run() on read Why is ...
Kliment Nechaev's user avatar
1 vote
0 answers
69 views

Boost.Cobalt: how to use channels from a C API callback?

I want to use a C API in a pipeline of coroutines communicating through channels. This is my first try with coroutines and my knowledge of them is limited. The shape of the pipeline is: -------- 1 ...
dvnh87's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
1617