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

0
votes
0answers
10 views

Boost - syslog_backend cant see set_formatter

Im trying set formatter to my syslog backend in boost, but when compile I got error: 'class boost::log::v2s_mt_posix::sinks::syslog_backend' has no member named 'set_formatter'I try with simple ...
2
votes
1answer
20 views

Line-based parser with empty lines and attributes, how to ignore attribute

I'm using boost spirit to parse a line-based format, where empty lines are allowed. For this, i'm using something similar to the following grammar:struct parser_type : public qi::grammar<std::...
0
votes
0answers
13 views

Error installing caffe due to boost-python

I'm trying to install pycaffe, but am failing the command make pycaffe with the error:ld: library not found for -lboost_pythonclang: error: linker command failed with exit code 1 (use -v to see ...
1
vote
1answer
34 views

According to the doc of boost 1.68, old io_context::post is deprecated. boost::asio::post() is recomanded. Can anyone give me an example?

I want to use the feature of asio::io_context::post. But I found it was marked as DEPRECATEDYou can see it here(Deprecated: Use boost::asio::post().) Request the io_context to invoke the given ...
0
votes
0answers
9 views

stdlib.h not found while building cortex using scons

I was trying to build cortex using scons,which fail when testing the boost library. in config.log it says:g++ -o .sconf_temp/conftest_1.o -c -isystem /usr/local/include/tbb - isystem /usr/include -...
0
votes
1answer
10 views

How do I build Boost.Log exported with bcp?

I'd like to use Boost.Log for my project, but I don't want to include the whole Boost library in my code repository. So I use bcp to copy just what I think is necessary to build Boost.Log from the ...
1
vote
1answer
19 views

How to install MultiNEAT

I am installing MultiNEAT at conda.conda create -n py35 python=3.5source activate py35conda install multineat -c conda-forgeThe installation ended normally, but when importing, the following ...
0
votes
0answers
18 views

GCC does not detect library path in MacOS Mojave

I have just upgraded to MacOS Mojave and installed g++ 8 (as g++-8), along with the boost library (libboost-dev in linux).Unfortunately, the g++ compiler cannot detect the boost library:fatal ...
0
votes
0answers
37 views

Boost serialization undefined defined exception errors

I have been having an issue with my boost C++ library. My code compiles but when I get to the linker stage, the IDE fails to link and gives me this error:/usr/local/include/boost/archive/detail/...
0
votes
0answers
35 views

access object from boost::thread

in my program I start a loop function using boost::thread:the code is like this:void MyClass::StartSim(){_thread=boost::thread(boost::bind(&MyClass::BoostTick, boost::ref(*this)));}...
0
votes
0answers
41 views

How to prevent recursive template instantiation by explicit instantiation

I am having trouble figuring out how to prevent recursive attempts at template substitution and explicitly force a sub-class template instantiation The following code:#include <boost/...
1
vote
1answer
54 views

Rcpp and boost: it should work but it does not

I have a question about the interesting post found at:Rcpp with quad precision computationI use:// [[Rcpp::depends(BH)]]#include <Rcpp.h>#include <boost/multiprecision/float128.hpp>...
-1
votes
0answers
22 views

libe57 can't build using cmake [duplicate]

I'm trying to use cmake in order to build libe57. I follow the instructions given in the documentation (I'm working on windows 10, visual studio 2017): Start the cmake-gui.exe and browse to the ...
1
vote
1answer
82 views

Using boost multiprecision with RcppEigen

I have written a library using RcppArmadillo. The problem I have is that for some parameters, the arma::solve function does not give me the exact solution, since the "A" matrix has an rcond close to 0....
0
votes
0answers
26 views

Boost.Python class inherit from Python type

I have need to expose C++ class but also to inherit from collections.Mapping (to make ** operator available).Is there way to do that? Alternative, is there protocol to implement ** for non-mapping ...
-1
votes
1answer
31 views

Creating a custom range class that wraps boost adaptors

I have a class that applies some boost transform adaptors to a range (for sake of example, in reality it's a lot more complex than this):struct Foo {auto range() const {return boost::...
1
vote
0answers
22 views

Boost Hana : basic_type and type, why do we need a relationship between them

I don't understand why hana must use basic_type. I mean, I understand basically how it works, but I do not see the usefulness of using typeand basic_type. Why just developed a "simple" type is not ...
-2
votes
0answers
28 views

std::bind fails with Boost MSM : Couldn't infer template argument _Fx and _Ret

I am trying to store the Boost MSM backend process_event function into an std::map for deferred calling upon expiry of a timer.typedef std::function<void(std::shared_ptr<TimerExpiryInd>)>...
1
vote
2answers
25 views

boost process running su

I using boost 1_65_1 and try to run a process on MacOS.my main process is running as root I need to launch a sub launch as a normal user.My command line:su user_name -c "full The path to the ...
1
vote
0answers
24 views

Boost.Program_options: Custom validator with state

I would like to write a custom validator for command line options that can take a value among a set of allowed values, e.g. for options such as--animal arg Allowed values: cat, dog, birdFor ...
0
votes
0answers
64 views
+50

Confusion about the stack trace of websocketpp destruction

I'm using Instrument(XCode tool) to get the stack trace of my program and i got the following result:In this picture it shows that the destruction ofstd::__1::vector<websocketpp::transport::...
1
vote
1answer
26 views

C++ boost::thread getting slower as program runs

I have C++ program with HMI. Everytime user clicks/presses button on HMI, some calculations are performed. If it is a single click then I do the calculation once and if it is a long press I keep ...
0
votes
1answer
25 views

Prevent boost xml Parser from crashing when wrong file selected in C++

I have a tool where a user can select a xml via a Qt Gui to set some parameters. The problem is. When the file is not a valid xml file my tool just crashes. I get the following error in Qt Creator: ...
0
votes
0answers
13 views

boost serialization cannot pass by reference to base class object to a function that serializes into it

I have a function that takes a reference to base class objects. I pass derived objects to this function to populate them with boost serialization but I cannot get this to work. When I try using the ...
0
votes
0answers
28 views

Finding boost-python3 with Anaconda cmake prefix

DLDR How do I point the cmake at boost-python3 library? It is not automatically detected by cmake.I'm trying to build caffe for Python 3.6 using the provided cmake.My system specs:Python 3.6.5, ...
0
votes
0answers
24 views

Installing with Boost 1.54 in Xubuntu 16.04

I need Boost 1.54 for some legacy code, but couldn't install it. If it matters, I am using VMWare to do this as I do not want to mess up my host OS.This is what I have done:$ sudo apt-get install ...
1
vote
0answers
24 views

“ld: unknown option: -soname” on OS X when compiling Boost

I want to build Boost from source on different platforms. I've been able to do that on linux (on a docker image). I'm also able to do this on my own computer (Mac OS X 10.13 Xcode 9.4.1) but when I ...
2
votes
2answers
45 views

How should this c++ typedef using decltype and declval be written to make it portable?

I have the following template <typename F, typename A0>struct ResultOf {typedef typename decltype(boost::declval<F>()(boost::declval<A0>())) Type;};It was written so ...
0
votes
0answers
24 views

How to properly use boost queue?

I have multiple processes that need to communicate to each other. I want to accomplish this with message queues.Boost message queue seems to be made for this purpose. The boost queues seems to be ...
0
votes
0answers
35 views

Sum neighborhood of every matrix element efficiently

I programmed a piece of code where I have a huge 3D matrix in C++ using boost::multi_array. For every matrix element I want to sum up the neighborhood in a certain distance dist. Every element is ...

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