|
|
|
|
|
by Ragnarork
160 days ago
|
|
> Is it easy to write a nice C interface for C++ that makes heavy use of templates, smart pointers, and move semantics? If the interface itself has or leaks those features, no that's not easy indeed. But if those do not leak, then they can be used internally yes. My point was not that it's easy to wrap a currently existing C++ library that has modern features in its interface in a C interface, especially post-C++11. But that if you design something from the ground up, then it's rather easy (with a certain set of constraints). My bad for not conveying that better. |
|