We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67fb6c3 commit 52cb9bdCopy full SHA for 52cb9bd
src/interop/dl-api/include/alpaqa/dl/dl-problem.h
@@ -664,10 +664,14 @@ using problem_functions_t = alpaqa_problem_functions_t;
664
using control_problem_functions_t = alpaqa_control_problem_functions_t;
665
666
namespace detail {
667
+/// Custom type for which we can export the RTTI to support std::any across
668
+/// shared library boundaries when using libc++.
669
template <class Signature>
670
struct ALPAQA_DL_PROBLEM_EXPORT function_wrapper_t {
671
std::function<Signature> function;
672
};
673
+template <class Signature>
674
+function_wrapper_t(std::function<Signature>) -> function_wrapper_t<Signature>;
675
} // namespace detail
676
677
/// Make the given function available to alpaqa.
0 commit comments