Created
April 18, 2017 16:36
-
-
Save deque-blog/ffc79e2eaff26c1887a2723dd620c91f 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
struct finalizer | |
{ | |
int operator() (int i) const { return i; } | |
int operator() (std::string const& s) const { return s.size(); } | |
}; | |
auto weird_gen = one_of_gen(finalizer{}, | |
int_gen(-10, 0), | |
string_gen(10, letter_gen())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment