Skip to content

fix, register particle struct in bench-small_object workload #276

Description

@steven-varga

Summary

bench/workloads/small_object.cpp wrote an unregistered POD aggregate via h5::write(fd, "particle", p), tripping the static_assert in H5Dwrite.hpp:737 that requires storage_representation_v<T> to resolve to a supported representation.

CI doesn't enable H5CPP_BUILD_BENCH, so the failure only surfaced on a local cmake --build of everything with bench enabled.

Fix

Add H5CPP_REGISTER_STRUCT(Particle) after the type definition, mirroring the smart_ptr example pattern.

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