Skip to content

Instantly share code, notes, and snippets.

@bremerm31
Created February 6, 2018 22:20
Show Gist options
  • Save bremerm31/2281f99c4d76796db49520ded97ef7e6 to your computer and use it in GitHub Desktop.
Save bremerm31/2281f99c4d76796db49520ded97ef7e6 to your computer and use it in GitHub Desktop.
Class for serialization
#ifndef SILLY_HPP
#define SILLY_HPP
template <typename T>
struct silly {
T var;
T* var_ptr;
silly()=default;
silly(T t) : var(std::move(t)), var_ptr(&var) {}
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment