Skip to content

Instantly share code, notes, and snippets.


rightfold/gist:56327a6989304b80f0d5 Secret

Last active Aug 29, 2015
What would you like to do?
class Value {
virtual ~Value() = 0;
std::size_t retain_count;
Value::~Value() = default;
// vtable for synthesized type
std::ptrdiff_t offsetToTop; // = 0;
std::type_info const* typeInfo; // = &typeInfo;
void(* dtorFirst)(void*); // = dtor
void(* dtorSecond)(void*); // = dtor
// note: dtor must call this->Value::~Value()
// type info for synthesized type
abi::__si_class_type_info typeInfo("std::Boolean", (abi::__si_class_type_info*)&typeid(Value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment