Skip to content

Possible improvement #34

@egorpugin

Description

@egorpugin

Hi,

Is it possible to improve as such?

using Student = message<
    field<uint32,"id", 1>, 
    field<std::string,"name", 3>
>;

Or another possible way with boost::pfr?

struct Student {
    field<uint32,"id", 1> id; 
    field<std::string,"name", 3> name;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions