libpmemobj-cpp
libpmemobj-cpp copied to clipboard
make_persistent_atomic and v pass C++ template function as callback to C
To guarantee correctness function passed to C as callback should have C linkage (define in extern "C"). This is not the case here. Current behavior can cause errors in some situation (for example when C and C++ have different calling convention).