diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-01-06 09:30:18 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-01-07 15:16:48 +0100 |
commit | 127092869ecfd58450be59b7626b89180df6d670 (patch) | |
tree | 79fd4abc2ab99b14ea23d80b48dbc9d3034296c6 /ACE/tests/Compiler_Features_38_Test.cpp | |
parent | eb87718ef82f6f7557e661b56e12aa72a5aae932 (diff) | |
download | ATCD-127092869ecfd58450be59b7626b89180df6d670.tar.gz |
Make use of ACE_CDR::ULong for the operator[], that matches with TAO and should work with any compiler
* ACE/tests/Compiler_Features_38_Test.cpp:
Diffstat (limited to 'ACE/tests/Compiler_Features_38_Test.cpp')
-rw-r--r-- | ACE/tests/Compiler_Features_38_Test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ACE/tests/Compiler_Features_38_Test.cpp b/ACE/tests/Compiler_Features_38_Test.cpp index 0d6466479db..8f95e76d057 100644 --- a/ACE/tests/Compiler_Features_38_Test.cpp +++ b/ACE/tests/Compiler_Features_38_Test.cpp @@ -4,6 +4,7 @@ */ #include "test_config.h" +#include "ace/CDR_Base.h" template <typename T> class Foo_T @@ -11,7 +12,7 @@ class Foo_T public: Foo_T () : member() {}; typedef T& T_elem; - T_elem operator[] (long) { return member; } + T_elem operator[] (ACE_CDR::ULong) { return member; } operator T *& () { return & member; }; private: T member; @@ -29,7 +30,7 @@ run_main (int, ACE_TCHAR *[]) ACE_START_TEST (ACE_TEXT("Compiler_Features_38_Test")); Foo2Seq f2; - long const j = f2[0L].i; + long const j = f2[0].i; ACE_UNUSED_ARG(j); ACE_DEBUG ((LM_INFO, |