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/database.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/database.cxx') diff --git a/odb/database.cxx b/odb/database.cxx index 7dd540f..f9e1043 100644 --- a/odb/database.cxx +++ b/odb/database.cxx @@ -67,7 +67,7 @@ namespace odb else { typedef void (*caller) (const void*, const char*, connection_type&); - reinterpret_cast (fw.function) (fw.std_function, name, c); + fw.cast () (fw.std_function, name, c); } return true; -- cgit v1.1