C++: Address false positive results in template instantiations.

This commit is contained in:
Geoffrey White
2024-07-22 12:40:29 +01:00
parent 8262330e4d
commit b4fa23d731
3 changed files with 2 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ template<typename F> F *test_template_platement_new() {
char buffer[1024];
try {
return new (buffer) F; // GOOD: `F` constructor might throw (when `F` is `Foo`) [FALSE POSITIVE]
return new (buffer) F; // GOOD: `F` constructor might throw (when `F` is `Bar`)
} catch (...) {
return 0;
}