diff options
Diffstat (limited to 'TAO/tao/Connector_Registry.cpp')
-rw-r--r-- | TAO/tao/Connector_Registry.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/TAO/tao/Connector_Registry.cpp b/TAO/tao/Connector_Registry.cpp index 8d3d2eece02..3c3ccada1e4 100644 --- a/TAO/tao/Connector_Registry.cpp +++ b/TAO/tao/Connector_Registry.cpp @@ -64,8 +64,11 @@ TAO_Connector_Registry::open (TAO_ORB_Core *orb_core) factory != end; ++factory) { - auto_ptr <TAO_Connector> connector ( - (*factory)->factory ()->make_connector ()); +#if defined (ACE_HAS_CPP11) + std::unique_ptr <TAO_Connector> connector ((*factory)->factory ()->make_connector ()); +#else + auto_ptr <TAO_Connector> connector ((*factory)->factory ()->make_connector ()); +#endif if (connector.get ()) { @@ -79,8 +82,7 @@ TAO_Connector_Registry::open (TAO_ORB_Core *orb_core) -1); } - this->connectors_[this->size_++] = - connector.release (); + this->connectors_[this->size_++] = connector.release (); } else return -1; |