Skip to content

Instantly share code, notes, and snippets.

@john-preston
john-preston / desktop-app_dco
Created March 9, 2020 11:22
Desktop App Toolkit Developer Certificate of Origin
Desktop App Toolkit Developer Certificate of Origin
By making a contribution to this project, I certify that:
(a) The contribution was created in whole by me or is based upon previous work that, to the best of my knowledge, is in the public domain and I have the right to put it in the public domain.
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all metadata and personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed.
(e) I am granting this work into the public domain.
@john-preston
john-preston / test.cpp
Last active August 4, 2021 16:24
Generic weak_ptr implementation.
#include "weak_ptr.h"
#include <cassert>
class T : public base::has_weak_ptr {
};
class NonEmpty {
int a = 0;
};