Skip to content

Instantly share code, notes, and snippets.

View gchatelet's full-sized avatar

Guillaume Chatelet gchatelet

  • Google
  • Paris, France
View GitHub Profile
version(linux):
extern(C++) {
struct elem9 { }
void foobar9(elem9*, elem9*);
static assert(foobar9.mangleof == "_Z7foobar9P5elem9S0_");
}
extern (C++)
{
// g++ ~/template_test.cc -c && nm template_test.o
struct A {};
struct B {};
template<typename TC>
struct C {
TC foo(TC) {}
};
#include <algorithm>
#include <chrono>
#include <future>
#include <thread>
#include <vector>
using namespace std;
using namespace std::chrono;
struct StopWatch {