queue_reader_handle: mark copy constructor noexcept

It is trivially so, as std::exception_ptr is nothrow default
constructible.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
Message-Id: <20210609135925.270883-2-bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2021-06-09 16:59:24 +03:00
committed by Avi Kivity
parent 3100cdcc65
commit 8ecc626c15
2 changed files with 2 additions and 2 deletions

View File

@@ -2089,7 +2089,7 @@ void queue_reader_handle::abandon() {
abort(std::make_exception_ptr<std::runtime_error>(std::runtime_error("Abandoned queue_reader_handle")));
}
queue_reader_handle::queue_reader_handle(queue_reader& reader) : _reader(&reader) {
queue_reader_handle::queue_reader_handle(queue_reader& reader) noexcept : _reader(&reader) {
_reader->_handle = this;
}

View File

@@ -567,7 +567,7 @@ private:
std::exception_ptr _ex;
private:
explicit queue_reader_handle(queue_reader& reader);
explicit queue_reader_handle(queue_reader& reader) noexcept;
void abandon();