Empty std::tuple<>
cannot be serialized and de-serialized
#4530
Labels
Milestone
std::tuple<>
cannot be serialized and de-serialized
#4530
Description
The behavior of serializing and de-sereailzing an empty tuple changed from
3.9.1
to3.10.0
.null
used to de-serialize without a problem tostd::tuple<>
but since throws an error since3.10.0
.The change of behavior happened in #2576.
Note that I'm not entirely sure this is a bug per-say, but we relied on this behavior in https://github.com/luxonis/depthai-core so I decided to report in case the previous behavior was "more correct".
Reproduction steps
To reproduce run the MRE with both
3.10.0
and3.9.1
.Expected vs. actual results
Expected -
null
succesfully de-serializes whenj.get<std::tuple<>>()
is called onnull
.Actual:
Minimal code example
Error messages
Compiler and operating system
Ubuntu 20.04, GCC 9.4.0
Library version
3.11.3
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: