Mir

Code review comment for lp:~andreas-pokorny/mir/libinput-platform-pointer-settings

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

/mir/include/common/mir/optional_value.h:31:45: error: no viable conversion from 'const mir::input::PointerSettings' to 'MirPointerButton'
    optional_value(T const& value) : value_{value}, is_set_{true} {}

+ PointerSettings() {}

"Otherwise clang does not allow construction with {}"

I'm confused. We're in the optional_value<PointerSettings> converting constructor, are trying to construct a MirPointerButton(!) and this is solved by giving PointerSettings() a user-defined default constructor?
...
Oh! clang is trying to use aggregate initialization and that is defeated by adding any user-defined constructor.

review: Approve

« Back to merge proposal