Skip to content

Instantly share code, notes, and snippets.

@8573
Created May 18, 2013 22:23
Show Gist options
  • Save 8573/5605959 to your computer and use it in GitHub Desktop.
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++.
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