Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / TransportCurrent / Current_ORBInitializer.cpp
blob491a57c65a61a271b33b2de0d56fadd3ef15dc87
1 #ifndef CURRENT_ORBINITIALIZER_CPP
2 #define CURRENT_ORBINITIALIZER_CPP
4 #include "tao/ORB_Constants.h"
5 #include "tao/TransportCurrent/Current_ORBInitializer.h"
7 #if !defined (ACE_LACKS_PRAGMA_ONCE)
8 # pragma once
9 #endif /* ACE_LACKS_PRAGMA_ONCE */
11 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 namespace TAO
15 namespace Transport
17 template <typename Impl>
18 Current_ORBInitializer<Impl>::Current_ORBInitializer(const ACE_TCHAR* id)
19 : Current_ORBInitializer_Base (id)
24 template <typename Impl>
25 TAO::Transport::Current_ptr
26 Current_ORBInitializer<Impl>::make_current_instance (TAO_ORB_Core* core,
27 size_t tss_slot_id)
29 // Create the Current
30 Current_ptr tmp = 0;
31 ACE_NEW_THROW_EX (tmp,
32 Impl (core, tss_slot_id),
33 CORBA::NO_MEMORY
34 (CORBA::SystemException::_tao_minor_code (TAO::VMCID,
35 ENOMEM),
36 CORBA::COMPLETED_NO));
38 return tmp;
45 TAO_END_VERSIONED_NAMESPACE_DECL
47 #endif /* CURRENT_ORBINITIALIZER_CPP */