Skip to content

Instantly share code, notes, and snippets.

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/6a4ac56480f007e367527a95ffbbd756 to your computer and use it in GitHub Desktop.
Save vinniefalco/6a4ac56480f007e367527a95ffbbd756 to your computer and use it in GitHub Desktop.
template<class OuterAlloc, class InnerAlloc = OuterAlloc,
class StringAlloc = OuterAlloc, class BodyAlloc = OuterAlloc>
struct message<true, OuterAlloc, InnerAlloc, StringAlloc, BodyAlloc>
{
int version;
basic_string<char, char_traits<char>, StringAlloc> method;
basic_string<char, char_traits<char>, StringAlloc> target;
using inner_string = basic_string<
char, char_traits<char>, InnerAlloc>;
map<inner_string, inner_string, less<str_t>,
scoped_allocator_adapter<OuterAlloc, InnerAlloc>> fields;
basic_string<char, char_traits<char>, BodyAlloc> body;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment