summaryrefslogtreecommitdiff
path: root/ACE
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2022-12-08 06:51:00 -0600
committerChad Elliott <elliottc@objectcomputing.com>2022-12-08 06:51:00 -0600
commitd9c8b11d5890465b6d8bd0723e939e531afd0c94 (patch)
treee77a7087c4e24dfd830d0f2a8a81d211bf911df7 /ACE
parentd521401c4965b313d53ed1be3be313c8c360df8e (diff)
downloadATCD-d9c8b11d5890465b6d8bd0723e939e531afd0c94.tar.gz
Added an assignment operator because a copy constructor was defined. (ubuntu 22 - gcc 11 warning)
Diffstat (limited to 'ACE')
-rw-r--r--ACE/ace/SPIPE_Addr.h3
-rw-r--r--ACE/ace/SPIPE_Addr.inl7
2 files changed, 10 insertions, 0 deletions
diff --git a/ACE/ace/SPIPE_Addr.h b/ACE/ace/SPIPE_Addr.h
index e6d781e195e..8d76f92d2ed 100644
--- a/ACE/ace/SPIPE_Addr.h
+++ b/ACE/ace/SPIPE_Addr.h
@@ -43,6 +43,9 @@ public:
/// system.
ACE_SPIPE_Addr (const ACE_TCHAR *rendezvous_point, gid_t = 0, uid_t = 0);
+ /// Assignment operator
+ ACE_SPIPE_Addr &operator = (const ACE_SPIPE_Addr &rhs);
+
/// Acts like a copy constructor...
int set (const ACE_SPIPE_Addr &sa);
diff --git a/ACE/ace/SPIPE_Addr.inl b/ACE/ace/SPIPE_Addr.inl
index b92aed80916..ec859a53830 100644
--- a/ACE/ace/SPIPE_Addr.inl
+++ b/ACE/ace/SPIPE_Addr.inl
@@ -4,6 +4,13 @@
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_INLINE ACE_SPIPE_Addr &
+ACE_SPIPE_Addr::operator = (const ACE_SPIPE_Addr &rhs)
+{
+ this->set (rhs);
+ return *this;
+}
+
// Compare two addresses for equality.
ACE_INLINE bool