|
|
|
|
|
by kazinator
1444 days ago
|
|
If you're writing in C++ on Windows, expose only COM (or at least COM-style) interface called through virtual functions on an object pointer. Then you can use whatever C++ run-time you want, internally. What you don't want is the other library calling C++ functions by name. Like you pass it some ostream object and it calls ostream::put or whatever, where that symbolically resolves to the wrong one. |
|
It also means that C++ or other runtimes don't pollute your ABI and make it annoyingly hard to access features from any random code.