aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/utility.mxx')
-rw-r--r--libbutl/utility.mxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbutl/utility.mxx b/libbutl/utility.mxx
index f944599..5d093ad 100644
--- a/libbutl/utility.mxx
+++ b/libbutl/utility.mxx
@@ -315,11 +315,12 @@ LIBBUTL_MODEXPORT namespace butl
F f_;
};
- // Cleanly cast dlsym() result (void*) to a function pointer.
+ // Cleanly cast between incompatible function types or dlsym() result
+ // (void*) to a function pointer.
//
- template <typename F>
+ template <typename F, typename P>
F
- function_cast (void*);
+ function_cast (P*);
// Call a function if there is an exception.
//