From 7d79d5298f56c4768a90df629b689d1bc3ebbb31 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 17 Jan 2019 15:48:05 +0300 Subject: Add function_wrapper::cast() that cleanly cast to an incompatible function type --- odb/schema-catalog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/schema-catalog.cxx') diff --git a/odb/schema-catalog.cxx b/odb/schema-catalog.cxx index b767bca..946884f 100644 --- a/odb/schema-catalog.cxx +++ b/odb/schema-catalog.cxx @@ -227,7 +227,7 @@ namespace odb else { typedef void (*caller) (const void*, database&); - reinterpret_cast (m.function) (m.std_function, db); + m.cast () (m.std_function, db); } r++; } -- cgit v1.1