core::dbus::Result<T> doesn't work with types that don't provide a no-argument constructor

Bug #1322611 reported by James Henstridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-cpp
New
Undecided
Unassigned

Bug Description

If a type doesn't provide a default constructor, then core::dbus::Result<T> type can't be used to decode a method reply.

Result::from_message() default constructs a result, which in turn tries to default constructs result.d.value. If the default constructor is missing, the template can't be instantiated.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.