Skip to content

Instantly share code, notes, and snippets.

@jyrkive
Created August 22, 2016 08:25
Show Gist options
  • Select an option

  • Save jyrkive/ba7a12241f92619a5494564051cb7f06 to your computer and use it in GitHub Desktop.

Select an option

Save jyrkive/ba7a12241f92619a5494564051cb7f06 to your computer and use it in GitHub Desktop.
template<typename T>
void tmp_create_game::update_options_data_map(T* widget, const std::string game_id)
{
options_data_[game_id][widget->id()] = widget->get_value();
}
template<>
void tmp_create_game::update_options_data_map(ttoggle_button* widget, const std::string game_id)
{
options_data_[game_id][widget->id()] = widget->get_value_bool();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment