- : wayland_proxy(p, [](ProxyT *p) {
- wl_proxy_destroy(reinterpret_cast<struct wl_proxy *>(p));
- }) {}
- wayland_proxy(void *p, std::function<void(ProxyT *)> p_del)
+ : wayland_proxy(p,
+ reinterpret_cast<void (*)(ProxyT *)>(wl_proxy_destroy)) {}
+ wayland_proxy(void *p, std::function<void(ProxyT *)> &&p_del)