Created
January 3, 2018 10:06
-
-
Save lisitsyn/652cb77dd86c87d81545fb82e9d3d070 to your computer and use it in GitHub Desktop.
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
class SuperSerializer { | |
on(int64); | |
on(float64); | |
on(SGObject*); | |
} | |
class Cereal<Archive> : SuperSerializer { | |
} | |
class BaseAnyPolicy { | |
void serialize(SuperSerializer*); | |
} | |
class ConcretePolicy<T> { | |
void serialize(SuperSerializer* s) { | |
// proper type | |
s->on(value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment