Skip to content

Store custom data types into session #688

@StefanoPetrilli

Description

@StefanoPetrilli

As far as I understand from the error message the types that it's possible to store at the moment inside crow::SessionMiddleware<crow::InMemoryStore>::context are long int, bool, string and double.

Would it be possible to expand the allowed data types to allow also other data types and ideally also custom data types?

Ideally what I would like to do would be:

  custom_data_type item = {...};
  session.set(itemName, item);

Based on my limited knowledge of C++ I have not fully understood why at the moment it is limited to that set of data types and where in the codebase this limitation is imposed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureCode based project improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions