Skip to content

Commit fdb3e0f

Browse files
authored
Introduce std::source_location. (#702)
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.
1 parent 68c93b6 commit fdb3e0f

File tree

13 files changed

+780
-104
lines changed

13 files changed

+780
-104
lines changed

NEWS

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
- Support for `PQinitOpenSSL()`. (#678)
3232
- Slightly more helpful error for unsupported conversions. (#695)
3333
- Replace some C++ feature tests with C++20 feature macros.
34-
- Give `stream_to` a move constructor. (#706)
35-
- Support move in `stream_to`. (#706)
36-
>>>>>>> 42a46214 (Support move assignment as well.)
34+
- Support moving of `stream_to`. (#706)
35+
- Incorporate `source_location` in exceptions.
3736
7.7.4
3837
- `transaction_base::for_each()` is now called `for_stream()`. (#580)
3938
- New `transaction_base::for_query()` is similar, but non-streaming. (#580)

config/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ am__can_run_installinfo = \
123123
esac
124124
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
125125
am__DIST_COMMON = $(srcdir)/Makefile.in compile config.guess \
126-
config.sub install-sh ltmain.sh missing mkinstalldirs
126+
config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
127127
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
128128
ACLOCAL = @ACLOCAL@
129129
AMTAR = @AMTAR@

0 commit comments

Comments
 (0)