mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
C-style casts between function pointers result in an error using g++ 8.3.0. This patch introduces a workaround based on `reinterpret_cast`, in which the original function pointer is first cast into an unsigned integer of sufficient size and then cast into the target function pointer type. TODO: Check that this is actually valid C++ with defined behavior on all implementations / platforms.