Skip to content

Instantly share code, notes, and snippets.

@theres-waldo
theres-waldo / analysis.md
Last active July 29, 2020 21:37
C++ compiler error analysis

Starting point: mozilla-central with https://phabricator.services.mozilla.com/D85296 and dependent patches applied.

First, we make this change to trigger the error.

The relevant part of the error is:

 0:06.54 /home/botond/dev/projects/mozilla/central/dom/system/IOUtils.cpp:204:3: error: no matching function for call to 'InvokeAsync'
 0:06.54   InvokeAsync(
 0:06.54   ^~~~~~~~~~~
@theres-waldo
theres-waldo / hang.cpp
Created June 4, 2014 05:07
Program demonstrating cpp-netlib hang
#include <string>
#include <boost/network/protocol/http/client.hpp>
std::string download_file(const std::string& url)
{
using namespace boost::network;
using namespace boost::network::http;
client c;
client::request r{url};
auto response = c.get(r);