summaryrefslogtreecommitdiff
path: root/ACE/examples
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-11-10 15:33:50 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-11-10 15:33:50 +0100
commit9fc7df737a14559cd7df02edd56a2cc41f2f6ef8 (patch)
tree2e31a1d306f6e6a1fccad76f1a4e453a1cb63e12 /ACE/examples
parent698de2c3f53cd82ed68851cf3af12a7f3047b8f0 (diff)
downloadATCD-9fc7df737a14559cd7df02edd56a2cc41f2f6ef8.tar.gz
Remove checks for ACE_HAS_CPP11 and remove the code for C++03 now that we require C++11 compiler support
* ACE/ACEXML/examples/SAXPrint/main.cpp: * ACE/ace/ARGV.h: * ACE/ace/Basic_Types.h: * ACE/ace/Bound_Ptr.h: * ACE/ace/Bound_Ptr.inl: * ACE/ace/CDR_Stream.cpp: * ACE/ace/Codeset_IBM1047.cpp: * ACE/ace/Event_Handler.cpp: * ACE/ace/Event_Handler.h: * ACE/ace/Global_Macros.h: * ACE/ace/OS_NS_Thread.cpp: * ACE/ace/Proactor.cpp: * ACE/ace/Process_Manager.h: * ACE/ace/Reactor.h: * ACE/ace/Reactor_Timer_Interface.h: * ACE/ace/Signal.h: * ACE/ace/Thread_Manager.cpp: * ACE/ace/Time_Policy.h: * ACE/ace/Time_Value.cpp: * ACE/ace/Time_Value.h: * ACE/ace/Time_Value.inl: * ACE/ace/WFMO_Reactor.cpp: * ACE/ace/XML_Utils/XML_Helper.h: * ACE/ace/XML_Utils/XSCRT/Elements.hpp: * ACE/ace/config-macosx-lion.h: * ACE/examples/APG/Active_Objects/AO.cpp: * ACE/examples/APG/Active_Objects/AO2.cpp: * ACE/examples/APG/Naming/Name_Binding.h: * ACE/examples/APG/Reactor/HAStatus.cpp: * ACE/examples/Threads/future1.cpp: * ACE/examples/Threads/future2.cpp: * ACE/netsvcs/lib/Client_Logging_Handler.cpp: * ACE/netsvcs/lib/Server_Logging_Handler_T.cpp: * ACE/tests/Bound_Ptr_Test.cpp: * ACE/tests/Bug_2540_Regression_Test.cpp: * ACE/tests/Bug_2820_Regression_Test.cpp: * ACE/tests/Chrono_Test.cpp: * ACE/tests/Compiler_Features_15_Test.cpp: * ACE/tests/Compiler_Features_16_Test.cpp: * ACE/tests/Compiler_Features_17_Test.cpp: * ACE/tests/Compiler_Features_18_Test.cpp: * ACE/tests/Compiler_Features_19_Test.cpp: * ACE/tests/Compiler_Features_20_DLL.h: * ACE/tests/Compiler_Features_21_Test.cpp: * ACE/tests/Compiler_Features_23_Test.cpp: * ACE/tests/Compiler_Features_24_Test.cpp: * ACE/tests/Compiler_Features_25_Test.cpp: * ACE/tests/Compiler_Features_26_Test.cpp: * ACE/tests/Compiler_Features_27_Test.cpp: * ACE/tests/Compiler_Features_28_Test.cpp: * ACE/tests/Compiler_Features_29_Test.cpp: * ACE/tests/Compiler_Features_31_Test.cpp: * ACE/tests/Compiler_Features_32_Test.cpp: * ACE/tests/Compiler_Features_34_Test.cpp: * ACE/tests/Compiler_Features_35_Test.cpp: * ACE/tests/Compiler_Features_36_Test.cpp: * ACE/tests/DLL_Test.cpp: * ACE/tests/Process_Manager_Test.cpp: * ACE/tests/Reactor_Remove_Resume_Test.cpp: * ACE/tests/Reactor_Timer_Test.cpp: * ACE/tests/Task_Ex_Test.cpp: * TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp: * TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp: * TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp: * TAO/TAO_IDL/be_include/be_helper.h: * TAO/orbsvcs/ImplRepo_Service/AsyncListManager.h: * TAO/tao/Object.h:
Diffstat (limited to 'ACE/examples')
-rw-r--r--ACE/examples/APG/Active_Objects/AO.cpp4
-rw-r--r--ACE/examples/APG/Active_Objects/AO2.cpp4
-rw-r--r--ACE/examples/APG/Naming/Name_Binding.h4
-rw-r--r--ACE/examples/APG/Reactor/HAStatus.cpp4
-rw-r--r--ACE/examples/Threads/future1.cpp4
-rw-r--r--ACE/examples/Threads/future2.cpp13
6 files changed, 0 insertions, 33 deletions
diff --git a/ACE/examples/APG/Active_Objects/AO.cpp b/ACE/examples/APG/Active_Objects/AO.cpp
index 352075f1fca..857cb941725 100644
--- a/ACE/examples/APG/Active_Objects/AO.cpp
+++ b/ACE/examples/APG/Active_Objects/AO.cpp
@@ -92,11 +92,7 @@ public:
while (1)
{
// Dequeue the next method object
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<ACE_Method_Request> request (this->activation_queue_.dequeue ());
-#else
- auto_ptr<ACE_Method_Request> request (this->activation_queue_.dequeue ());
-#endif /* ACE_HAS_CPP11 */
// Invoke the method request.
if (request->call () == -1)
diff --git a/ACE/examples/APG/Active_Objects/AO2.cpp b/ACE/examples/APG/Active_Objects/AO2.cpp
index a0bc5594362..bd73fb10f7e 100644
--- a/ACE/examples/APG/Active_Objects/AO2.cpp
+++ b/ACE/examples/APG/Active_Objects/AO2.cpp
@@ -90,11 +90,7 @@ public:
while (1)
{
// Dequeue the next method object
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<ACE_Method_Request> request (this->activation_queue_.dequeue ());
-#else
- auto_ptr<ACE_Method_Request> request (this->activation_queue_.dequeue ());
-#endif /* ACE_HAS_CPP11 */
// Invoke the method request.
if (request->call () == -1)
diff --git a/ACE/examples/APG/Naming/Name_Binding.h b/ACE/examples/APG/Naming/Name_Binding.h
index e40c717383a..0c21cde49e3 100644
--- a/ACE/examples/APG/Naming/Name_Binding.h
+++ b/ACE/examples/APG/Naming/Name_Binding.h
@@ -53,11 +53,7 @@ private:
char *type_;
};
-#if defined ACE_HAS_CPP11
typedef std::unique_ptr<Name_Binding> Name_Binding_Ptr;
-#else
-typedef auto_ptr<Name_Binding> Name_Binding_Ptr;
-#endif
// Listing 1
#endif /* NAME_BINDING_H */
diff --git a/ACE/examples/APG/Reactor/HAStatus.cpp b/ACE/examples/APG/Reactor/HAStatus.cpp
index c424fd86aec..f4d25a2e1dd 100644
--- a/ACE/examples/APG/Reactor/HAStatus.cpp
+++ b/ACE/examples/APG/Reactor/HAStatus.cpp
@@ -95,11 +95,7 @@ ClientAcceptor::handle_input (ACE_HANDLE)
{
ClientService *client = 0;
ACE_NEW_RETURN (client, ClientService, -1);
-#if defined ACE_HAS_CPP11
std::unique_ptr<ClientService> p (client);
-#else
- auto_ptr<ClientService> p (client);
-#endif
if (this->acceptor_.accept (client->peer ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/ACE/examples/Threads/future1.cpp b/ACE/examples/Threads/future1.cpp
index 96504624420..b80071185cb 100644
--- a/ACE/examples/Threads/future1.cpp
+++ b/ACE/examples/Threads/future1.cpp
@@ -218,11 +218,7 @@ Scheduler::svc (void)
{
// Dequeue the next method object (we use an auto pointer in
// case an exception is thrown in the <call>).
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<ACE_Method_Request> mo (this->activation_queue_.dequeue ());
-#else
- auto_ptr<ACE_Method_Request> mo (this->activation_queue_.dequeue ());
-#endif /* ACE_HAS_CPP11 */
ACE_DEBUG ((LM_DEBUG, "(%t) calling method object\n"));
// Call it.
diff --git a/ACE/examples/Threads/future2.cpp b/ACE/examples/Threads/future2.cpp
index d435a7f6318..20f66f10188 100644
--- a/ACE/examples/Threads/future2.cpp
+++ b/ACE/examples/Threads/future2.cpp
@@ -215,11 +215,7 @@ Scheduler::svc (void)
{
// Dequeue the next method object (we use an auto pointer in
// case an exception is thrown in the <call>).
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<ACE_Method_Request> mo (this->activation_queue_.dequeue ());
-#else
- auto_ptr<ACE_Method_Request> mo (this->activation_queue_.dequeue ());
-#endif /* ACE_HAS_CPP11 */
ACE_DEBUG ((LM_DEBUG, " (%t) calling method object\n"));
// Call it.
@@ -273,11 +269,7 @@ Scheduler::name (void)
{
// This scheduler is inactive... so we execute the user
// request right away...
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<ACE_Method_Request> mo (new Method_Request_name (this, new_future));
-#else
- auto_ptr<ACE_Method_Request> mo (new Method_Request_name (this, new_future));
-#endif /* ACE_HAS_CPP11 */
mo->call ();
// Smart pointer destructor automatically deletes mo.
@@ -302,13 +294,8 @@ Scheduler::work (u_long newparam, int newcount)
if (this->thr_count () == 0)
{
-#if defined (ACE_HAS_CPP11)
std::unique_ptr<ACE_Method_Request> mo
(new Method_Request_work (this, newparam, newcount, new_future));
-#else
- auto_ptr<ACE_Method_Request> mo
- (new Method_Request_work (this, newparam, newcount, new_future));
-#endif /* ACE_HAS_CPP11 */
mo->call ();
// Smart pointer destructor automatically deletes it.
}