Skip to content

Treat std::vector<char> similar to rfl::Bytestring #459

@bjia56

Description

@bjia56

I am using msgpack in an RPC library to serialize structs with reflect-cpp and have a situation where msgpack messages are nested, i.e. a std::vector<char> is produced by a rfl::msgpack::write which is then added to a struct and serialized again before sending it over a connection. To my understanding, the vector is not treated in a special way, and would be serialized element by element. It would be nice if reflect-cpp can treat std::vector<char> similar to rfl::Bytestring; today, I have to do a vector copy to convert between the two and benefit from the serializer's optimizations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions