1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

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.
This commit is contained in:
Sergei Zimmerman 2025-06-01 20:48:49 +00:00
parent b73e706589
commit cdb8567473
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

View file

@ -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; }