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:
parent
b73e706589
commit
cdb8567473
1 changed files with 0 additions and 3 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue