Replies: 1 comment
-
It is not possible to export C++ templates as C APIs, because the APIs are not compatible. EDIT: C++ templates are treated like regular functions if they are specialized, so you can call them from C if you have explicit specialization: c++ - How to export template function? - Stack Overflow |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to make a library(linux), and export several C APIs, one of the API will be:
invoke:
mylog_print(spdlog::level::debug, "hello {}", "spdlog");
mylog_print(spdlog::level::debug, "hello 1+1 = {}", 2);
Beta Was this translation helpful? Give feedback.
All reactions