aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.posix/posix.tempfile.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-29 17:16:22 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-29 17:16:22 +0100
commit4fa6821e0645ff61a9380cd090abff472205c630 (patch)
treebd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.posix/posix.tempfile.ccm
parente5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff)
downloadnihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.gz
nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.bz2
add clang-tidy support
Diffstat (limited to 'nihil.posix/posix.tempfile.ccm')
-rw-r--r--nihil.posix/posix.tempfile.ccm8
1 files changed, 5 insertions, 3 deletions
diff --git a/nihil.posix/posix.tempfile.ccm b/nihil.posix/posix.tempfile.ccm
index 20378b5..82f3be4 100644
--- a/nihil.posix/posix.tempfile.ccm
+++ b/nihil.posix/posix.tempfile.ccm
@@ -56,13 +56,15 @@ export struct temporary_file final {
// Not copyable.
temporary_file(temporary_file const &) = delete;
- auto operator=(this temporary_file &, temporary_file const &)
- -> temporary_file & = delete;
// Movable.
temporary_file(temporary_file &&other) noexcept;
+
+ // Not assignable.
+ auto operator=(this temporary_file &, temporary_file const &)
+ -> temporary_file & = delete;
auto operator=(this temporary_file &, temporary_file &&) noexcept
- -> temporary_file &;
+ -> temporary_file & = delete;
private:
// The file descriptor for the file.