|
|
|
|
|
by o11c
791 days ago
|
|
The good news is that since C++ containers aren't special to the language, you can just implement your own wrapper classes that disable the copy ctor (and provide an explicit `.clone()` instead). Coupled with `#pragma GCC poison` it is pretty easy to blacklist legacy footguns in source files at least (though not in headers without some aggressive work). ... and yet, almost all vulnerabilities in C++ code are still written in C style, not even legacy C++. |
|
[0] https://github.com/capnproto/capnproto/blob/v2/kjdoc/tour.md