]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Add missing `stdexcept` include in `lmdb-safe.hh` 14785/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Oct 2024 14:20:37 +0000 (16:20 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Oct 2024 14:20:37 +0000 (16:20 +0200)
commit223d815db4fc84fedc0a9006af07f2927d1d58fd
tree1c044588cf96177f493190f96c5359fbfff7b53c
parentf21bd2f3e2202411d4768f2e10bed4b7b158b4c7
dnsdist: Add missing `stdexcept` include in `lmdb-safe.hh`

It was only included for non-dnsdist contexts, but `std::runtime_error`
is used in all contexts and gcc version 14.2.1 20240910 (at least) is
not happy about it:
```
In file included from ext/lmdb-safe/lmdb-safe.cc:2:
ext/lmdb-safe/lmdb-safe.hh: In member function ‘int MDBROTransactionImpl::get(MDB_dbi, const MDBInVal&, MDBOutVal&)’:
ext/lmdb-safe/lmdb-safe.hh:379:18: error: ‘runtime_error’ is not a member of ‘std’
  379 |       throw std::runtime_error("Attempt to use a closed RO transaction for get");
      |
```
ext/lmdb-safe/lmdb-safe.hh