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
1 vote
1 answer
14 views

HippoMocks: mocking boost::chtono::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
27 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
47 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
88 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
61 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
58 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
34 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
1 vote
1 answer
26 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
1 vote
0 answers
51 views

How to Align Memory to Cache Line Using Boost Interprocess Shared Memory

I am writing a Boost.Interprocess code for shared memory between two processes. I am using managed_shared_memory. I'm initializing the memory using boost::interprocess::open_or_create, and I am ...
Rishi Jain's user avatar

15 30 50 per page
1
2 3 4 5
1861