Skip to content

Instantly share code, notes, and snippets.

@wjwwood
Created September 21, 2015 16:51
Show Gist options
  • Select an option

  • Save wjwwood/855d8d3bd01d798f3b95 to your computer and use it in GitHub Desktop.

Select an option

Save wjwwood/855d8d3bd01d798f3b95 to your computer and use it in GitHub Desktop.
void create_subscription(..., std::function<void()> callback);
void create_subscription(..., std::function<void(const T & message)> callback);
create_subscription(..., []() -> void {}); // This is an ambiguous call on Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment