Skip to content

Can't serialize tuple to msgpack #8

Closed
@marton78

Description

@marton78

This tiny self-contained example doesn't compile:

std::tuple<int, std::string> tup{ 42, "foo" };
std::string temp = BitSerializer::SaveObject<BitSerializer::MsgPack::MsgPackArchive>(tup);

Breaks with:

serialization_base_types.h:484:20: error: static assertion failed due to requirement
'!MsgPackWriteRootScope::is_binary || (hasGlobalSize || isEnumerable)':
BitSerializer. Saving to a binary archive requires a known container size.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions