aboutsummaryrefslogtreecommitdiff
path: root/odb/schema-catalog.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-01-17 15:48:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-18 13:59:31 +0300
commit7d79d5298f56c4768a90df629b689d1bc3ebbb31 (patch)
tree668ef735fa24ac7042f150bd823bcfcebebb5a92 /odb/schema-catalog.cxx
parentd7fffb8fbd0743e6dfcf76eb4373bfead92bffc7 (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.cxx2
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++;
}