Last active
April 18, 2017 10:48
-
-
Save deque-blog/76d5a505b42287e35e3378d72110587b 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 rgb_color | |
{ | |
int m_red; | |
int m_green; | |
int m_blue; | |
}; | |
auto color_gen = int_gen(0, 255); | |
auto rgb_color_gen = apply_gen(to_object<rgb_color>(), | |
color_gen, color_gen, color_gen); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment