The C++ rule of five suggests that when a custom destructor is needed then several other functions are as well. The lack of those makes certain operations challenging
12 lines
161 B
C++
12 lines
161 B
C++
#include "nix/util/processes.hh"
|
|
|
|
namespace nix {
|
|
|
|
Pid & Pid::operator=(Pid && other) noexcept
|
|
{
|
|
swap(*this, other);
|
|
return *this;
|
|
}
|
|
|
|
} // namespace nix
|