Variant::as<>() should not consume the variant.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dbus-cpp |
New
|
Undecided
|
Unassigned |
Bug Description
I'm seeing the following errors:
void core::dbus:
Expected: uint32
Actual: invalid
void core::dbus:
Expected: uint32
Actual: invalid
This seems like Variant is consumed by the first caller of Variant::as<>(). This will be a problem for example if there are multiple handlers of a signal that passes an Variant as an argument.
There should not be a limit how many times Variant::as<>() or any other conversion function can be called.