Created
May 18, 2013 22:23
-
-
Save 8573/5605959 to your computer and use it in GitHub Desktop.
Example for Vultraz of a `BOOST_FOREACH` loop over `tod_{red,green,blue}_field_`. May not work; as I said, I’m a bit out of practice with C++.
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
tfield_integer* tod_colors[] = {tod_red_field_, tod_green_field, tod_blue_field_}; | |
BOOST_FOREACH(tfield_integer* color, tod_colors) | |
connect_signal_notify_modified(*(color->widget()), boost::bind( | |
&tcustom_tod::slider_update_callback, this, boost::ref(window))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment