From b517f9cd2684d2b6a5540c9ff64bad19acee4bc1 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 17 Oct 2018 13:28:05 +0300 Subject: Add function_cast() to utility.mxx --- libbutl/utility.mxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbutl/utility.mxx') diff --git a/libbutl/utility.mxx b/libbutl/utility.mxx index 54c7b43..f944599 100644 --- a/libbutl/utility.mxx +++ b/libbutl/utility.mxx @@ -315,6 +315,12 @@ LIBBUTL_MODEXPORT namespace butl F f_; }; + // Cleanly cast dlsym() result (void*) to a function pointer. + // + template + F + function_cast (void*); + // Call a function if there is an exception. // -- cgit v1.1