Add resource factory to Wayland::Resource
It should be possible to add a template factory method to Wayland::Resource such that the version is queried automatically from the parent resource/bind.
That could also nicely catch errors on resource creation and in that case just hand back a nullptr.
Edited by Roman Gilg