diff options
author | Henning Baldersheim <balder@oath.com> | 2018-09-26 08:43:28 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-09-26 08:43:28 +0200 |
commit | 00ec7d6b50cada563c42fbc4b7d94435ee8bf118 (patch) | |
tree | 4539455f333f2a1274c9d9142fb15dbe1e379c78 /vespalib/src | |
parent | caf41285a431c02e896695d66eec19e3178260a1 (diff) |
Nested namespace and =delete
Diffstat (limited to 'vespalib/src')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/slaveproc.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/vespalib/src/vespa/vespalib/util/slaveproc.h b/vespalib/src/vespa/vespalib/util/slaveproc.h index 72b20cfb069..c08a13f0b1d 100644 --- a/vespalib/src/vespa/vespalib/util/slaveproc.h +++ b/vespalib/src/vespa/vespalib/util/slaveproc.h @@ -8,14 +8,9 @@ #include <queue> #include "sync.h" -namespace vespalib { - -namespace slaveproc { - -class Timer; - -} // namespace slaveproc +namespace vespalib::slaveproc { class Timer; } +namespace vespalib { /** * @brief Slave Process utility class for running external programs * @@ -56,12 +51,12 @@ private: bool _failed; int _exitCode; - SlaveProc(const SlaveProc &); // no copy - SlaveProc &operator=(const SlaveProc &); // no assignment - void checkProc(); public: + SlaveProc(const SlaveProc &) = delete; + SlaveProc &operator=(const SlaveProc &) = delete; + /** * @brief Run a slave process * |