Skip to content

try_make_tuple_like can't create an std::array #1140

@beojan

Description

@beojan

I'm trying to decode into an std::array of a non-default constructible class. I have a tag_invoke specialization for the class itself, and I've added the is_sequence_like<std::array<TYPE>> : std::false_type {} specialization.

Unfortunately, this still doesn't quite work because line 318 of boost/json/detail/value_to.hpp uses:

    return {
        boost::system::in_place_value, T(std::move(*std::get<Is>(items))...});

instead of

    return {
        boost::system::in_place_value, T{std::move(*std::get<Is>(items))...}};

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