From 2c9a7979a41def3ee4c7fea7163718af25a26e61 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 16 Jun 2014 23:08:26 +0300 Subject: [PATCH] Make older gcc versions happy --- source/bindable.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/bindable.h b/source/bindable.h index 8ea78034..8a5821b9 100644 --- a/source/bindable.h +++ b/source/bindable.h @@ -99,7 +99,7 @@ private: template void init(const T *o) { - cleanup = (o ? &unbind : 0); + cleanup = (o ? static_cast(&unbind) : 0); slot = 0; if(o) o->bind(); @@ -110,7 +110,7 @@ private: template void init(const T *o, S s) { - cleanup = (o ? &unbind_from : 0); + cleanup = (o ? static_cast(&unbind_from) : 0); slot = s; if(o) o->bind_to(s); @@ -170,7 +170,7 @@ private: { old = T::current(); slot = 0; - cleanup = (o!=old ? &restore : 0); + cleanup = (o!=old ? static_cast(&restore) : 0); if(o) o->bind(); else if(old) @@ -182,7 +182,7 @@ private: { old = T::current(s); slot = s; - cleanup = (o!=old ? &restore_to : 0); + cleanup = (o!=old ? static_cast(&restore_to) : 0); if(o) o->bind_to(s); else if(old) -- 2.43.0