diff options
Diffstat (limited to 'TAO/tao/Object.cpp')
-rw-r--r-- | TAO/tao/Object.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/TAO/tao/Object.cpp b/TAO/tao/Object.cpp index 78a7cd0d77c..b96ae7b5125 100644 --- a/TAO/tao/Object.cpp +++ b/TAO/tao/Object.cpp @@ -110,7 +110,11 @@ CORBA::Object::_remove_ref (void) CORBA::ULong CORBA::Object::_refcount_value(void) const { - return static_cast<CORBA::ULong> (this->refcount_.value ()); +#if defined (ACE_HAS_CPP11) + return this->refcount_; +#else + return this->refcount_.value (); +#endif /* ACE_HAS_CPP11 */ } void |