3 ms·
Not only it is possible, it is routinely done. At $WORK we have libraries that are use std=20 features in its implementation and only expose a c++=14 interface
by gpderetta 4y ago
Not only it is possible, it is routinely done. At $WORK we have libraries that are use std=20 features in its implementation and only expose a c++=14 interface because that's what expected by our clients.
It is mildly painful, bit not more painful than restricting to c++14.
- arinlen 4y ago> At $WORK we have libraries that are use std=20 features (...) That's specified at the package/project level. You're inadvertently proving my point. > (...) and only expose a c++=14 interface because that's what expected by our clients. That's also configured at the package level, because the interface headers need to be included in translation units from projecta configured tu be C++14. Again, you're also inadvertently supporting the point I made.