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/schema-catalog.cxx | |
parent | d7fffb8fbd0743e6dfcf76eb4373bfead92bffc7 (diff) |
Add function_wrapper::cast() that cleanly cast to an incompatible function type
Diffstat (limited to 'odb/schema-catalog.cxx')
-rw-r--r-- | odb/schema-catalog.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<caller> (m.function) (m.std_function, db); + m.cast<caller> () (m.std_function, db); } r++; } |