Skip to content

Custom meta<T> without value  #1523

Description

@SenseOnline

Thanks for the great library.

It would be nice to be able to do this if it can be supported.
To support having an unknown_reader, unknown_writer and maybe others within the custom meta without having to redefine the entirety of the struct.

struct bigJson 
{
   /* ... */
};

template<>
struct glz::meta<bigJson>
{
    static constexpr auto unknown_read{ /* ... */ };
    static constexpr auto unknown_write{ /* ... */ };
};

This currently produces the following error on Visual Studio 2022 due to concept detail::global_meta_t<T> evaluating to false:
glaze\json\read.hpp(116,33): static_assert failed: 'unknown_read type not handled'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions