Dep/ACE: Upgrade ACE -library to 5.8.3
--HG-- branch : trunk
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
/**
|
||||
* @file Auto_IncDec_T.h
|
||||
*
|
||||
* $Id: Auto_IncDec_T.h 84675 2009-03-02 11:44:35Z johnnyw $
|
||||
* $Id: Auto_IncDec_T.h 92353 2010-10-25 06:34:35Z johnnyw $
|
||||
*
|
||||
* @author Edan Ayal <[email protected]>
|
||||
*/
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user