Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct Person {
std::vector<std::string> aliases;

template<class T>
void msgpack(T &pack) {
void pack(T &pack) {
pack(name, age, aliases);
}
};
Expand All @@ -37,7 +37,7 @@ int main() {
auto person = Person{"John", 22, {"Ripper", "Silverhand"}};

auto data = msgpack::pack(person); // Pack your object
auto john = msgpack::unpack<Person>(data.data()); // Unpack it
auto john = msgpack::unpack<Person>(data); // Unpack it
}
```

Expand Down