diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2023-06-21 08:01:18 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2023-06-21 08:01:18 +0000 |
commit | 636ef40a22cce0e4a4ecd7599b4b277f8b050f38 (patch) | |
tree | 9ecf0a1ed7903bde717b8b38077cc1ab969139db /vespalib | |
parent | cea896a6fad5be3d93b28ecbe752cc0c9468e1c0 (diff) |
make deleted functions public
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/test/nexus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/test/nexus.h b/vespalib/src/vespa/vespalib/test/nexus.h index 8df840f295d..a1f00401b89 100644 --- a/vespalib/src/vespa/vespalib/test/nexus.h +++ b/vespalib/src/vespa/vespalib/test/nexus.h @@ -28,12 +28,12 @@ private: size_t _thread_id; Nexus(vote_t &vote, size_t thread_id) noexcept : _vote(vote), _thread_id(thread_id) {} + ~Nexus(); +public: Nexus(Nexus &&) = delete; Nexus(const Nexus &) = delete; Nexus &operator=(Nexus &&) = delete; Nexus &operator=(const Nexus &) = delete; - ~Nexus(); -public: size_t num_threads() const noexcept { return _vote.size(); } size_t thread_id() const noexcept { return _thread_id; } bool vote(bool my_vote) { return _vote(my_vote); } |