From 8f4e07f9ce98ef3001b63cabf88812b5f4562170 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 13 Sep 2019 13:36:39 +0200 Subject: No need to generate a copy constructor, the compile will generate one, fixes warnings with gcc9. When we have C++11 we can use the =default to indicate that the compiler generates one * TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: * TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp: * TAO/tao/Object_KeyC.cpp: * TAO/tao/Object_KeyC.h: --- TAO/tao/Object_KeyC.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'TAO/tao/Object_KeyC.h') diff --git a/TAO/tao/Object_KeyC.h b/TAO/tao/Object_KeyC.h index f5523bf3b07..4224046edd5 100644 --- a/TAO/tao/Object_KeyC.h +++ b/TAO/tao/Object_KeyC.h @@ -92,7 +92,12 @@ namespace TAO CORBA::Octet* buffer, CORBA::Boolean release = false ); - ObjectKey (const ObjectKey &); +#if defined (ACE_HAS_CPP11) + ObjectKey (const ObjectKey &) = default; + ObjectKey (ObjectKey &&) = default; + ObjectKey& operator= (const ObjectKey &) = default; + ObjectKey& operator= (ObjectKey &&) = default; +#endif /* ACE_HAS_CPP11 */ ~ObjectKey (void); typedef ObjectKey_var _var_type; -- cgit v1.2.1