Commit f592ba9
committed
Use std::uncaught_exceptions whenever it is supported
Don't rely on __cpp_lib_uncaught_exceptions being defined, this doesn't
work for at least MSVS which, nevertheless, does provide this function
since MSVS 2015 version and, worse, gives warning about using deprecated
std::uncaught_exception() since MSVS 2017.
Check __cplusplus for the value indicating C++17 support and fall back
on checking MSVS version directly as it doesn't define __cplusplus
correctly neither by default (this requires using the special
/Zc:__cplusplus option which is only available since 2017.7 and not in
the previous versions).1 parent 12ead5c commit f592ba9
File tree
2 files changed
+16
-2
lines changed- hdr/sqlite_modern_cpp/utility
- tests
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
7 | 21 | | |
8 | 22 | | |
9 | | - | |
| 23 | + | |
10 | 24 | | |
11 | 25 | | |
12 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments