I'm having a problem using boost with cpp-netlib. Specifically, my problem is that I can't seem to get the body of a simple GET request. I suspect that the problem is related to this github issue but I have tried recompiling both boost and cpp-netlib with C++11 enabled (as recommended by github issue) and I don't see a change it behaviour.

These are the commands I'm using to compile boost from source:
./b2 install --prefix=/usr/ toolset=gcc cxxflags="-std=c++11"
This is the command I'm using to compile cpp-netlib:
make & sudo make install
This is a snippet of the code I'm trying to get to work:
#include <boost/network/protocol/http/client.hpp>

using namespace boost::network;
using namespace boost::network::http;

void testGet()
                http::client client;
                std::string url = "http://" + this->_baseUrl + uri;
                http::client::request request(url.c_str());

                request << boost::network::header("Content-Type", "application/json");
                request << boost::network::header("X-IG-API-KEY", conversationContext.apiKey);
                request << boost::network::header("Connection", "close");

                std::cout << "Sending Request!\n";
                http::client::response response = client.get(request);
                std::cout << "Got Response Back!\n";

                std::cout << http::status(response) << " " << http::status_message(response) << std::endl;
                std::cout << http::body(response) << std::endl;
Note: Code above won't compile because things like "this->_baseUrl" won't evaluate properly. I just wrapped up this code snippet into a C function just to give a bit of context.

It seems to hang after the "Got Response Back" is printed to the console. What am I missing? I can't understand why I can't get it to work. FYI, I'm very new to Boost and cpp-netlib so it is very possible I'm missing something obvious.