summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_helper.h
diff options
context:
space:
mode:
authorSon Dinh <dinhs@objectcomputing.com>2020-04-22 16:29:22 -0500
committerSon Dinh <dinhs@objectcomputing.com>2020-04-22 16:29:22 -0500
commit4769f4a6dfd4110aab6cea30a978a5ed2e3f1da5 (patch)
tree8458cea296700010b604d01f4712757f8f1baa54 /TAO/TAO_IDL/be_include/be_helper.h
parentaaf3877d5e0a2e3ad32579b7486c42c6c8506df0 (diff)
downloadATCD-4769f4a6dfd4110aab6cea30a978a5ed2e3f1da5.tar.gz
Use size_t instead of unsigned long
Diffstat (limited to 'TAO/TAO_IDL/be_include/be_helper.h')
-rw-r--r--TAO/TAO_IDL/be_include/be_helper.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h
index 3943c765862..ca4462e6ed9 100644
--- a/TAO/TAO_IDL/be_include/be_helper.h
+++ b/TAO/TAO_IDL/be_include/be_helper.h
@@ -173,16 +173,16 @@ public:
// =overloaded operators
#if defined (ACE_HAS_CPP11)
- // Avoid duplication of overloaded operator for unsigned long
+ // Avoid duplication for the underlying type of size_t
template <typename Dummy = TAO_OutStream &>
typename std::enable_if<std::is_same<Dummy, TAO_OutStream &>::value &&
- !std::is_same<ACE_CDR::ULongLong, unsigned long>::value &&
- !std::is_same<ACE_CDR::ULong, unsigned long>::value,
+ !std::is_same<ACE_CDR::ULongLong, size_t>::value &&
+ !std::is_same<ACE_CDR::ULong, size_t>::value,
TAO_OutStream &>::type
- operator << (const unsigned long num)
+ operator << (const size_t num)
{
ACE_OS::fprintf (this->fp_,
- "%lu",
+ ACE_TEXT_ALWAYS_CHAR (ACE_SIZE_T_FORMAT_SPECIFIER),
num);
return *this;