diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-17 15:48:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-18 13:59:31 +0300 |
commit | 7d79d5298f56c4768a90df629b689d1bc3ebbb31 (patch) | |
tree | 668ef735fa24ac7042f150bd823bcfcebebb5a92 /odb/database.cxx | |
parent | d7fffb8fbd0743e6dfcf76eb4373bfead92bffc7 (diff) |
Add function_wrapper::cast() that cleanly cast to an incompatible function type
Diffstat (limited to 'odb/database.cxx')
-rw-r--r-- | odb/database.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<caller> (fw.function) (fw.std_function, name, c); + fw.cast<caller> () (fw.std_function, name, c); } return true; |