MCPcopy Create free account
hub / github.com/SqliteModernCpp/sqlite_modern_cpp / ~A

Method ~A

tests/exception_dont_execute_nested.cc:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9struct A {
10 ~A() {
11 database db(":memory:");
12 db << "CREATE TABLE person (id integer primary key not null, name TEXT not null);";
13
14 try {
15 auto stmt = db << "INSERT INTO person (id,name) VALUES (?,?)";
16 throw 1;
17 } catch (int) {
18 }
19 }
20};
21int main() {
22#ifdef __cpp_lib_uncaught_exceptions

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected