Created
February 6, 2018 22:20
-
-
Save bremerm31/2281f99c4d76796db49520ded97ef7e6 to your computer and use it in GitHub Desktop.
Class for serialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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