4 ms·
> And you can keep lower levels of warning for older, or third party code. Maybe, but I think it’s hard to do in practice. Many C++ libraries are header only b
by Const-me 7y ago
> And you can keep lower levels of warning for older, or third party code.
Maybe, but I think it’s hard to do in practice. Many C++ libraries are header only because templates, i.e. old and new stuff is mixed really well.
Differentiating warnings is possible with #pragma but they aren’t portable across compilers.
- gumby 7y agoWhat we do is make a small shim to a more modern interface and then compile the shim, with the includes, in c++11 mode with whatever warnings disabled as necessary. I know this doesn't work for everyone and we can't even do it with everything. But it helps a lot.