summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Mitz <mitza@objectcomputing.com>2021-11-10 08:32:50 -0600
committerGitHub <noreply@github.com>2021-11-10 08:32:50 -0600
commit0cfb634acbf7e879190307efcbe91b29fc6f360d (patch)
treef28807c9b2c40bed3571a6fcc4cffd4d788ba02d
parent15373a92f1cadc0b637d44101987d80c77604d52 (diff)
parent6205b23dc8beb0691e887f988246f53bb0f3da4f (diff)
downloadATCD-0cfb634acbf7e879190307efcbe91b29fc6f360d.tar.gz
Merge pull request #1641 from mitza-oci/handle-set-warnings
[ACE 6] Fixed warnings related to Handle_Set's copy constructor
-rw-r--r--ACE/ace/Handle_Set.h2
-rw-r--r--ACE/ace/Handle_Set.inl7
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)
{