diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-25 21:47:18 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-25 21:47:18 +0000 |
commit | d28774dc49e367dab02e7a61c89ce0de6f6f97d6 (patch) | |
tree | 5d1fafd0b8a22589b06e512a252ccd0d4e546336 | |
parent | a7ec920a6fa35fca7c4e425cb1c620af7022c410 (diff) | |
download | ATCD-d28774dc49e367dab02e7a61c89ce0de6f6f97d6.tar.gz |
ChangeLogTag:Wed Oct 25 22:42:03 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-rw-r--r-- | ACE/ChangeLog | 10 | ||||
-rwxr-xr-x | ACE/tests/Integer_Truncate_Test.cpp | 32 |
2 files changed, 26 insertions, 16 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index fa1055269bf..493b4200c46 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,13 @@ +Wed Oct 25 22:42:03 UTC 2006 Ossama Othman <ossama_othman at symantec dot com> + + * tests/Integer_Truncate_Test.cpp: + + Remove "const" qualifiers from types used in + ACE_Utils::Truncate<>() function template parameters that are + deduced using argument dependent lookup. Borland appears to get + confused, and can't find the non-const template parameter + Truncate<>() specializations. + Wed Oct 25 20:17:13 UTC 2006 Ossama Othman <ossama_othman at symantec dot com> * ace/Hash_Map_Manager_T.inl (ACE_Hash_Map_Iterator_Base_Ex): diff --git a/ACE/tests/Integer_Truncate_Test.cpp b/ACE/tests/Integer_Truncate_Test.cpp index 82ae387211f..f9c60764bca 100755 --- a/ACE/tests/Integer_Truncate_Test.cpp +++ b/ACE/tests/Integer_Truncate_Test.cpp @@ -37,7 +37,7 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != static_cast<to_type> (f)) @@ -57,7 +57,7 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != static_cast<to_type> (f)) @@ -77,8 +77,8 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f1) != f1 @@ -99,7 +99,7 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != static_cast<to_type> (f)) @@ -136,8 +136,8 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (static_cast<from_type> (Truncate<to_type> (f1)) != f1 @@ -158,7 +158,7 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) @@ -178,8 +178,8 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f1) != f1 @@ -200,7 +200,7 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != f) @@ -237,7 +237,7 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) @@ -257,7 +257,7 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) @@ -277,8 +277,8 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f1) != f1 @@ -299,7 +299,7 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) |