Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Cast fixed-length string -> std::string missing #505

@JATC1024

Description

@JATC1024

Is your feature request related to a problem? Please describe.
H5Easy.load cannot load fixed length strings. I always get the error Can't output std::string as fixed-length. Use raw arrays or FixedLenStringArray. I tried to use HighFive::FixedLenStringArray<N> and it worked. However, I had to know the length of the strings beforehand since N must be a constant. This does not seem viable to me.

Describe the solution you'd like
Something like

int size = dataset.getStringSize();
HighFive::FixedLenStringArray strs(size);

would be nice. Or even better if H5Easy will handle everything so that I don't have to care if the dataset is fixed length or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StringAnything related to handling strings, sequences of chars.bugenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions