Automatic conversion between std::tuple<> and boost::json::value does not work.
The code
std::tuple<> t0;
boost::json::value v = boost::json::value_from(t0);
std::tuple<> t1 = boost::json::value_to<std::tuple<>>(v);
fails to compile with the error message
static assertion failed: 'No suitable tag_invoke overload found for the type'.
This seems counterintuitive. Obviously an empty C++ tuple should be converted to an empty JSON array and vice-versa.
Tested with Boost 1.92.0 and Visual Studio 2026 on Windows 11.
Automatic conversion between std::tuple<> and boost::json::value does not work.
The code
fails to compile with the error message
static assertion failed: 'No suitable tag_invoke overload found for the type'.This seems counterintuitive. Obviously an empty C++ tuple should be converted to an empty JSON array and vice-versa.
Tested with Boost 1.92.0 and Visual Studio 2026 on Windows 11.