Skip to content

Instantly share code, notes, and snippets.

@vinniefalco
Last active July 20, 2017 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinniefalco/777392dda186bf90ed332ec1cdeeb9dd to your computer and use it in GitHub Desktop.
Save vinniefalco/777392dda186bf90ed332ec1cdeeb9dd to your computer and use it in GitHub Desktop.
template<class OuterAlloc, class InnerAlloc>
struct message<true, OuterAlloc, InnerAlloc>
{
using alloc_type =
scoped_allocator_adapter<OuterAlloc, InnerAlloc>;
using str_t = basic_string<
char, char_traits<char>, InnerAlloc>;
int version;
str_t method;
str_t target;
map<str_t, str_t, less<str_t>, alloc_type> fields;
str_t body;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment