|
infix
A JIT-Powered FFI Library for C
|
Cookbook Chapter 5: Interfacing with C++ Templates. More...
Functions | |
| int | main () |
Variables | |
| const char * | MANGLED_GET_DBL = "_ZNK3BoxIdE9get_valueEv" |
| const char * | LIB_NAME = "./libbox.so" |
Cookbook Chapter 5: Interfacing with C++ Templates.
This example demonstrates calling a specific instantiation of a C++ template class. While you can't call the template itself, you can find the mangled name for a concrete instantiation (e.g., Box<double>) and call its methods.
| int main | ( | void | ) |
| const char* LIB_NAME = "./libbox.so" |
| const char* MANGLED_GET_DBL = "_ZNK3BoxIdE9get_valueEv" |