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".

learn more…| top users | synonyms|boost jobs

-2
votes
0answers
18 views

Assertion while terminating boost::state_machine

I have a problem terminating my state_machine..I keep getting the following assertion in state.hpp terminate_impl()...This is my state_machine:// indentation means "substate":struct ...
0
votes
4answers
54 views

Synchronize writing to log in a multi-threading process

I implemented a Logger, so it can be used like ostream.e.g, if someone wants to write to the log - he can do something like this:LOG << "hello world " << 6 << 8.6 << "\n";...
1
vote
2answers
30 views

When I use py++ to generate then boost.Python wrapper on macOS, I got a error about std::string?

The code I want to generate wrapper for is#include <string>#include <iostream>class Dog{public:Dog(int age, std::string name):age_(age),name_(name){}void bark(){std:...
1
vote
1answer
18 views

How to get gzip_params from boost's gzip_decompressor()

I am using the boost gzip_decompressor() from the following link:How can I read line-by-line using Boost IOStreams' interface for Gzip files?Reading the gzip file works fine, but how do I read ...
1
vote
1answer
54 views

Using Boost asio to receive commands and execute them

I'm trying to make a boost server, which will receive commands and do certain things. Now I would like to create a function, that will receive a file and save it to a specific location. The problem is ...
-7
votes
0answers
43 views

How can I calculate mean absolute deviation from a vector in C++ using Boost? [on hold]

is there a way to calculate mean absolute deviation in C++ using Boost? I've searched through the Boost documentation, specifically, Boost Accumulator, but don't really see anything that would work. ...
1
vote
1answer
20 views

Boost multi index private members access

I have a structstruct employee{int id;std::string name;employee(int id,const std::string& name):id(id),name(name){}bool operator<(const employee& e)const{return id&...
0
votes
0answers
20 views

Using Boost to_utf function with not uniform encoding name

Can I useboost::locale::conv::to_utffunction like this:std::wstring wide_string=boost::locale::conv::to_utf<wchar_t>(str, encodingName);if encodingName is not uniform (Utf8 instead UTF-...
-2
votes
0answers
42 views

Boost circular buffer and pthreads [on hold]

I currently develop a streaming application which should be cross platform.I need a circular buffer of cv::Mat to store frames, if algorithm is very slow. Questions:Shall I use pthreads(win32 ...
0
votes
2answers
19 views

Constant matrix with boost ublas

I would like to define a constant 3x3 matrix with boost like this and it will never change during the execution:[1 2 34 5 67 8 9] This matrix will be a member of a class. So, can I define and ...
0
votes
0answers
23 views

Boost linking warning

What happened:I built boost with bootstrap.sh and b2. Installed with http://stackoverflow.com/b2 installCouldn't figure out how to use it, as I'm a newbiesudo apt install libboost-devSearched online for instructions. I ...
1
vote
1answer
28 views

How to retrieve program output as soon as it printed?

I have a boost::process::child. There are many examples on how to get all its stdout or stderr in a single vector, but in this method you capture all data at once. But how to retrieve lines/characters ...
-1
votes
0answers
50 views

What function/class to use so I can add multiple class types in a single array? [on hold]

I would like to have multiple types of classes in a single vector array.I first thought i could use the boost::any function, but i am either wrong, or I don't know how to use it.So does someone know ...
1
vote
1answer
11 views

Boost multi_array with dynamic rank

The rank (or NumDims) parameter of boost::multi_array is a std::size_t template parameter. Is there any way to give the array a dynamic rank instead of static? I'm assuming not, looking at the code ...
2
votes
2answers
46 views

Boost::Signals2 slot with lambda expression fails using gcc6 on arm32

I received the following code from a colleague, broken down to the bare minimum, using Boost::Signal2 and lambda expressions. It compiles with g++ 6.x and g++ 5.4.1 (the latter with argument -std=c++...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,