diff options
author | Adam Mitz <mitza@objectcomputing.com> | 2021-08-03 11:02:39 -0500 |
---|---|---|
committer | Adam Mitz <mitza@objectcomputing.com> | 2021-08-03 11:02:39 -0500 |
commit | 6205b23dc8beb0691e887f988246f53bb0f3da4f (patch) | |
tree | 8920e4b4acd9ce53e6bede054a356fab762a645e /ACE | |
parent | e409c7349cedfccb242154030a7720dd0a551412 (diff) | |
download | ATCD-6205b23dc8beb0691e887f988246f53bb0f3da4f.tar.gz |
Fixed warnings related to Handle_Set's copy constructor
Diffstat (limited to 'ACE')
-rw-r--r-- | ACE/ace/Handle_Set.h | 2 | ||||
-rw-r--r-- | ACE/ace/Handle_Set.inl | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ACE/ace/Handle_Set.h b/ACE/ace/Handle_Set.h index 4e4cf36ab94..8a3312ef778 100644 --- a/ACE/ace/Handle_Set.h +++ b/ACE/ace/Handle_Set.h @@ -113,6 +113,8 @@ public: fd_set *fdset (void); #if defined (ACE_HAS_BIG_FD_SET) + ACE_Handle_Set (const ACE_Handle_Set &other); + /// Assignment operator optimizes for cases where <size_> == 0. ACE_Handle_Set & operator= (const ACE_Handle_Set &); #endif /* ACE_HAS_BIG_FD_SET */ diff --git a/ACE/ace/Handle_Set.inl b/ACE/ace/Handle_Set.inl index db76152f168..35efaebb06c 100644 --- a/ACE/ace/Handle_Set.inl +++ b/ACE/ace/Handle_Set.inl @@ -27,6 +27,13 @@ ACE_Handle_Set::reset (void) } #if defined (ACE_HAS_BIG_FD_SET) +ACE_INLINE ACE_Handle_Set::ACE_Handle_Set (const ACE_Handle_Set &other) + : size_ (other.size_) + , max_handle_ (other.max_handle_) + , min_handle_ (other.min_handle_) + , mask_ (other.mask_) +{} + ACE_INLINE ACE_Handle_Set & ACE_Handle_Set::operator = (const ACE_Handle_Set &rhs) { |