Commit fdb3e0f
authored
Introduce
Introduce `std::source_location`.
Allow exceptions to track source locations. This is still pretty
rudimentary.
One thing I'm not happy about is the way different exception classes
have their own `source_location` members that are not related to each
other. This means that if you want to access that field, you have to
catch a fairly specific exception type.
Also of course, it's not great that we can't assume that the compiler
actually supports this feature. The testing helpers could be much nicer
if they could rely on `source_location` — we might even get by without
some of the preprocessor macros.std::source_location. (#702)1 parent 68c93b6 commit fdb3e0f
File tree
13 files changed
+780
-104
lines changed- config
- include/pqxx
- internal
- src
- test
- unit
13 files changed
+780
-104
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments