Skip to content

parse_into.hpp:109: Assertion `false' failed with std::tuple #1048

@tyler92

Description

@tyler92

Version of Boost

devel branch, commit 85f9e92c18283d42737ebd067df4f881824e4edb

Steps necessary to reproduce the problem

#include <boost/json/parse_into.hpp>
#include <boost/describe/class.hpp>

struct Test
{
  std::tuple<bool, int> t1;
};

BOOST_DESCRIBE_STRUCT(Test, (), (t1))

int main()
{
  Test object{};
  std::error_code ec;

  std::string data = R"({"t1":[]})";
  boost::json::parse_into(object, data, ec);

  return 0;
}

Output:

test-parse: boost/json/detail/parse_into.hpp:109: bool boost::json::detail::handler_error_base<boost::json::error::not_bool>::on_object_end(system::error_code &) [E = boost::json::error::not_bool]: Assertion `false' failed.
Aborted (core dumped)

All relevant compiler information

Clang version 17.0.6

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