Skip to content

FR: Allow templates to access binary schema #7930

@wibotwi

Description

@wibotwi

If I have a demo.fbs with Demo table, then fb can generate embed schema as static method in struct DemoBinarySchema in file demo_bfbs_generated.h

My method is template<T> send(const T& data).
I need a way to access DemoBinarySchema from DemoT.

For example fbs already allows accessing table type from T type:

struct DemoT: ... {
    typedef Demo TableType;

This allows me to use T::TableType inside my send template method. I need similar approach for embed binary schema.

Thank you

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