Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created March 3, 2018 17:03
Show Gist options
  • Save deque-blog/e75c455d02833f5499ed07d5d9acaba3 to your computer and use it in GitHub Desktop.
Save deque-blog/e75c455d02833f5499ed07d5d9acaba3 to your computer and use it in GitHub Desktop.
void f (Context const& context, ...);
void caller_from_rest(Context const& context)
{
WithContext restContext("REST", "/api/v1.0/f");
f(context, ...);
// ... "REST" automatically removed at the end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment