libpmemobj-cpp icon indicating copy to clipboard operation
libpmemobj-cpp copied to clipboard

make_persistent_atomic and v pass C++ template function as callback to C

Open igchor opened this issue 6 years ago • 0 comments

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).

igchor avatar May 29 '19 13:05 igchor