Skip to content

Commit 9be164e

Browse files
committed
fix: mark move constructor noexcept to satisfy clang-tidy
1 parent 156332c commit 9be164e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/iostream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class scoped_ostream_redirect {
185185
}
186186

187187
scoped_ostream_redirect(const scoped_ostream_redirect &) = delete;
188-
scoped_ostream_redirect(scoped_ostream_redirect &&other)
188+
scoped_ostream_redirect(scoped_ostream_redirect &&other) noexcept
189189
: old(other.old), costream(other.costream), buffer(std::move(other.buffer)) {
190190
other.old = nullptr; // Disarm moved-from destructor
191191
costream.rdbuf(&buffer); // Re-point stream to our buffer

0 commit comments

Comments
 (0)