diff options
Diffstat (limited to 'ACE/ace/Auto_IncDec_T.h')
-rw-r--r-- | ACE/ace/Auto_IncDec_T.h | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/ACE/ace/Auto_IncDec_T.h b/ACE/ace/Auto_IncDec_T.h index 70619f28604..437b5fe4780 100644 --- a/ACE/ace/Auto_IncDec_T.h +++ b/ACE/ace/Auto_IncDec_T.h @@ -34,14 +34,13 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL * * This data structure is meant to be used within a method, * function, or scope. The actual parameter given for the - * <ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> template parameter + * @c ACE_SAFELY_INCREMENTABLE_DECREMENTABLE template parameter * must provide at least operators ++ and --. */ template <class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> -class ACE_Auto_IncDec +class ACE_Auto_IncDec : private ACE_Copy_Disabled { public: - /// Implicitly increment the counter. ACE_Auto_IncDec (ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &counter); @@ -52,16 +51,9 @@ public: void dump (void) const; protected: - /// Reference to the <ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> counter + /// Reference to the @c ACE_SAFELY_INCREMENTABLE_DECREMENTABLE counter /// we're incrementing/decrementing. ACE_SAFELY_INCREMENTABLE_DECREMENTABLE &counter_; - -private: - // = Prevent assignment and initialization. - ACE_UNIMPLEMENTED_FUNC (void operator= (const - ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> &)) - ACE_UNIMPLEMENTED_FUNC (ACE_Auto_IncDec (const - ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> &)) }; ACE_END_VERSIONED_NAMESPACE_DECL @@ -72,14 +64,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL #if defined (ACE_TEMPLATES_REQUIRE_SOURCE) #include "ace/Auto_IncDec_T.cpp" -// On Win32 platforms, this code will be included as template source -// code and will not be inlined. Therefore, we first turn off -// ACE_INLINE, set it to be nothing, include the code, and then turn -// ACE_INLINE back to its original setting. All this nonsense is -// necessary, since the generic template code that needs to be -// specialized cannot be inlined, else the compiler will ignore the -// specialization code. Also, the specialization code *must* be -// inlined or the compiler will ignore the specializations. #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) |