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
8 views
Using boost libraries in Qt
Some days ago i compiled boost ver. 1_53_0 for vs2012, works fine, compiles fine. Now i want to use boost with Qt creator. In the .pro file i've included
INCLUDEPATH += C:\boost\boost_1_53_0\ ...
0
votes
0answers
37 views
C++ factory using non-default constructor
I am implementing deserialization of XML (and later binary) format to an inheritance hierarchy. I want to create the objects in the tree using this (syntactically-incorrect) constructor (which accepts ...
1
vote
0answers
19 views
boost::signals2 and exception handling
Is there some way to override the specific moment when a slot is called in boost::signals2 and perform some actions (logging, debugging, exception handling)?
I would like to catch exceptions at the ...
0
votes
1answer
56 views
Iterator for vector values in a std::map
I have a class containing a map that stores vectors of shared_ptr objects.
#include <map>
#include <memory>
#include <vector>
template <class T, class U>
class MyMap {
...
1
vote
2answers
56 views
Understanding vector<shared_ptr<T> >, shared_ptr<vector<T> >, or vector<T>
The Node is the data structure used to store the Node when we parse a graph.
Here is the sample code:
struct NodeA {
vector<string> vecStrs; // the size of the vecStrs keeps increasing!
};
...
5
votes
4answers
142 views
algorithm to add values of two ranges and place them into a third one
I was just wondering if there was anything (either in c++11 or boost) that could help me do something like this:
std::vector<int> v1 = {1, 2, 3};
std::vector<int> v2 = {2, 5, 4};
...
0
votes
0answers
31 views
c++: use boost range transformed adaptor with binary function
Suppose I have two std::vectors x and y and a binary function F. I would like to create a new object z (not necessarily a vector), with the property that the ith elemenent of z will be the application ...
0
votes
4answers
59 views
How to access a private member inside a static void* function
File:Service.hpp
class Service
{
private:
boost::unordered_map<std::string,int> m_mapModuleType2FD;
void ProcessRequest();
public:
static void* KeepAlive(void* arg);
...
2
votes
2answers
59 views
Boost linker errors when using header only libraries
I am using the following components of boost 1.53.0 in conjunction with C++11 libs . . .
boost::signals2::scoped_connection
boost::signals2::signal
boost::signals2::connection
...
1
vote
0answers
30 views
boost::shared_ptr and Return Type Resolver idiom
I am currently working on a concept of Object known in Java or C# for C++. It would be similar to variant type like boost::any, however having wider functionality. For that purpose I am using ...
2
votes
1answer
18 views
Boost io_service.accept : Get URI called
I would like to get the URI called with boost.
If http://localhost:8080/users/4 is called, I want to know the URI or just /users/4
#include <boost/bind.hpp>
#include <boost/asio.hpp>
...
2
votes
1answer
25 views
Boost asio “network connection was aborted by local system” on async_read_some
I'm having an issue creating a really simple TCP based server-client connection using boost asio. When I get a connection from a client on my server and get into the method that handles the ...
1
vote
0answers
17 views
How to convert images from cv::Mat to boost::gil::rgb8c_view_t
Does anyone know how to convert images from cv::Mat to boost::gil::rgb8c_view_t? I found one solution by others, which is basically like this:
template <typename DestView>
DestView ...
0
votes
1answer
17 views
How to set a dynamic task as a defaultTask
Sorry for the newbie question, but I have yet to see an example or question related to specifying dynamic tasks as a defaultTask in a gradle project.
So, how do I specify the dynamic $boostLibName ...
0
votes
1answer
12 views
Need help to build Boost from source for MinGW
I was trying to build Boost library from source for MinGW. The Boost website says no guarantee but there seem to be people done it successfully. However I couldn't find much instructions on the web.
...