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/details/function-wrapper.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'odb/details/function-wrapper.hxx') diff --git a/odb/details/function-wrapper.hxx b/odb/details/function-wrapper.hxx index 3a8ebfc..165df18 100644 --- a/odb/details/function-wrapper.hxx +++ b/odb/details/function-wrapper.hxx @@ -59,6 +59,11 @@ namespace odb void swap (function_wrapper&); + // Cleanly cast to an incompatible function type. + // + template R + cast () const; + // Conversion to bool. // public: -- cgit v1.1