Skip to content

Instantly share code, notes, and snippets.

@retep998
Created November 24, 2013 06:51
Show Gist options
  • Save retep998/7624131 to your computer and use it in GitHub Desktop.
Save retep998/7624131 to your computer and use it in GitHub Desktop.
Basic runtime example
#include "runtime.hpp"
#include <iostream>
struct special {
void fuck() {
std::cout << "Wheeeeeee" << std::endl;
}
};
template <typename T>
struct base : private T {
void fuck() {
T::fuck();
}
};
base<special> lolgay;
void fuck() {
lolgay.fuck();
}
#pragma once
void fuck();
#include "runtime.hpp"
int main() {
fuck();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment