From cdb8567473999f6728584174961e99849c347fb2 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sun, 1 Jun 2025 20:48:49 +0000 Subject: [PATCH] libutil: Don't explicitly default special member functions Since all of the member types are copyable/movable the compiler will generate all of those by default anyway. --- src/libutil/include/nix/util/position.hh | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libutil/include/nix/util/position.hh b/src/libutil/include/nix/util/position.hh index 90de0c0b2..34cf86392 100644 --- a/src/libutil/include/nix/util/position.hh +++ b/src/libutil/include/nix/util/position.hh @@ -43,9 +43,6 @@ struct Pos Pos() { } Pos(uint32_t line, uint32_t column, Origin origin) : line(line), column(column), origin(origin) { } - Pos(Pos & other) = default; - Pos(const Pos & other) = default; - Pos(Pos && other) = default; explicit operator bool() const { return line > 0; }